This repository was archived by the owner on Aug 3, 2026. It is now read-only.
[SE-4860] cherry-pick configuration/pull/6586 - #185
Closed
gabor-boros wants to merge 1 commit into
Closed
Conversation
Other squashed commit messages: fix: celery 5.0+ does not support --app as a worker flag refactor: remove duplicated app declaration fix: --config flag is global since Celery 5.0+ fix: replace single-beat with an updated version fix: add missing comma fix: replace maxtasksperchild worker flag refactor: address PR review comments refactor: remove celery<5 adjustments fix: set single-beat autorestart Signed-off-by: Gabor Boros <gabor.brs@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Cherry-pick of openedx-unsupported#6586
This PR allows setting separate users for single-beat and celery brokers, allows authentication, and setting the single-beat identifier for future fine-grained access control using Redis ACLs.
Also, we are replacing the source url of the package, hence the original code became outdated and
akachanov:masteris ahead of the original repo by fixing issues and removing incompatible code.Supporting information
Some months ago edX platform was not capable of doing periodic scheduling of celery tasks. Therefore we added celerybeat to the platform. The only issue with celerybeat is that it cannot run more than once. If multiple celerybeat schedulers are running at the same time, the same task can be scheduled multiple times resulting in unwanted behaviours. Here comes
single-beatinto picture that ensures (using redis) that no more than one celerybeat processes are running.Akachanov removed Tornadis that was published in 2018 for the last time and broke with the newest Celery. Using Akachanov's fork ensures that single-beat is still working with the newest Celery and he also seems to fixed some reconnect issues -- I assume hence the celerybeat process restarts, since I cannot see any errors and periodically scheduled tasks are processed as expected.