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

Refactor redis and queue dependencies in preparation for Django 4.0 #486

Merged
merged 5 commits into from
Sep 5, 2024

Conversation

Kobzol
Copy link
Collaborator

@Kobzol Kobzol commented Sep 5, 2024

After this PR, it should be hopefully straightforward to migrate to Django 4.0 (will send in a follow-up PR).

We need to perform special operations on production to make it work with this PR!

Ideally by stopping the server, performing the migration steps manually, and then restarting it and let the after-merge deploy be a no-op.

What needs to be done:

  • Reconfigure RQ worker to use the --with-scheduler flag for the default queue: rqworker default --with-scheduler
  • Disable/remove the rqscheduler service
  • Configure SCHEDULER_QUEUES in local_settings.py (needs to be done with admin access)
  • Run the following commands to skip already applied scheduler migrations:
    $ python3 manage.py migrate scheduler 0001_initial_squashed_0005_added_result_ttl --fake

@Kobzol Kobzol marked this pull request as ready for review September 5, 2024 12:41
@Kobzol Kobzol merged commit 9eaff43 into master Sep 5, 2024
1 check passed
@Kobzol Kobzol deleted the rq-refactor branch September 5, 2024 20:05
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.

1 participant