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

feat: allow to run multiple celery queues and workers #1

Merged
merged 14 commits into from
Jul 10, 2024

Conversation

Ian2012
Copy link
Contributor

@Ian2012 Ian2012 commented Jun 20, 2024

Description

This PR allows the deployment of multiple celery queues and workers via settings. It also overrides the default lms-worker deployment to prevent it to consume events from all queues.

Deployed on musashi/tunis

Future work

  • Having a special queue/deployment for Aspects
  • Support extra arguments for the deployments
  • Support the gevent pool (install gevent on openedx via this plugin)
  • Add a tutor filter for the workers

@jfavellar90
Copy link
Member

@Ian2012 I remain attentive to the results of the tests adding LMS tasks to CMS configuration (via EXPLICIT_QUEUES) and vice-versa

@Ian2012
Copy link
Contributor Author

Ian2012 commented Jul 4, 2024

@jfavellar90 Mixing the settings for the tasks routes can cause different issues, I've decided to create two separate variables to control LMS and CMS workers tasks routing.

@Ian2012 Ian2012 force-pushed the cag/celery-queue branch from 84bb1fc to f01dea3 Compare July 9, 2024 17:43
README.md Outdated
- cms_custom_queue
```

This plugin also provides a setting to directly route LMS/CMS tasks to an specific queue:
Copy link
Member

Choose a reason for hiding this comment

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

I think it's important to mention that this will extend/override the variable EXPLICIT_QUEUES on both LMS and CMS

@jfavellar90
Copy link
Member

I already provided my approval @Ian2012, however, please fix the minor detail I mentioned in my last comment and proceed with the merge.

@Ian2012 Ian2012 merged commit ceb9e3b into main Jul 10, 2024
2 checks passed
@jfavellar90 jfavellar90 deleted the cag/celery-queue branch September 11, 2024 22:56
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.

2 participants