Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

j4mie
Copy link
Member

@j4mie j4mie commented Apr 5, 2021

So.. this PR does quite a lot, and when it is released will be backwards incompatible. This was necessary to support anything newer than Django 2.2.

django-db-queue is now quite old, and relies on a bunch of unmaintained dependencies. This PR removes them all, at the cost of making the upgrade path a bit of a pain. Details are in the README but in short: you have to drop the jobs table and recreate it.

We now use the cross-database JSONField implementation that was added in Django 3.1, rather than a third-party unmaintained thing. I've also removed the dependency on my own simplesignals library (which I haven't touched in nine years!)

I've removed some stuff that was never used (the create_job management command (which didn't work anyway) and the JobSerializer, which I'd forgotten even existed.

import dj_database_url


DATABASE_URL = os.environ.get("DATABASE_URL", "sqlite:///:memory:")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one too many / here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weirdly this is actually correct. See https://docs.sqlalchemy.org/en/14/dialects/sqlite.html#connect-strings for an explanation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok cool :)

j4mie added 2 commits May 14, 2021 09:51
@j4mie j4mie mentioned this pull request Aug 18, 2021
@j4mie
Copy link
Member Author

j4mie commented Aug 19, 2021

Superceded by #42

@j4mie j4mie closed this Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants