Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch background task library #164

Open
thomersch opened this issue Mar 28, 2024 · 2 comments
Open

Switch background task library #164

thomersch opened this issue Mar 28, 2024 · 2 comments

Comments

@thomersch
Copy link
Owner

Rationale: We're using django-background-tasks for running asynchronous jobs. This library doesn't get any updates anymore and doesn't seem to support neither Django 4 nor Python 3.12.

Possible solutions:

  1. Fork the library and make the necessary changes. It doesn't seem too large, so it might be doable.
  2. Swap out for a different library.

Constraints:

  1. I don't want to add new infrastructure, it should work with PostgreSQL as backend. (This eliminates Celery)
  2. The library shouldn't be too heavy. We don't need many features, just delayed jobs that can be picked up by a worker.
  3. Should play somehow nicely with Django without having to write too much additional boilerplate.
@mvexel
Copy link
Contributor

mvexel commented Jun 19, 2024

Is this fork an option?

@thomersch
Copy link
Owner Author

The fork is definitely an option, but we can also wait for Django DEP-14 to materialise. There is a reference implementation.

The used Django version (3.2) has reached EOL, but it seems that there are no security problems with it so far, so we could stretch it a bit and upgrade only when native background workers are shipped with Django.

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

No branches or pull requests

2 participants