fix(deps): update Celery to 5.6.0+ to fix task_id None error#429
Open
MoralCode wants to merge 4 commits into
Open
fix(deps): update Celery to 5.6.0+ to fix task_id None error#429MoralCode wants to merge 4 commits into
MoralCode wants to merge 4 commits into
Conversation
Fixes #3458 Updates Celery from ~=5.5 to >=5.6.0 to fix a bug where task_id becomes None during exception handling while executing a task chain within a chord. This was reported in celery/celery#9774 and fixed in Celery 5.6.0. Signed-off-by: ANJAN672 <rockyanjan672@gmail.com>
…in docker Signed-off-by: ANJAN672 <rockyanjan672@gmail.com>
Signed-off-by: ANJAN672 <rockyanjan672@gmail.com>
Signed-off-by: ANJAN672 <rockyanjan672@gmail.com>
| # to ensure it works in both docker and non-docker environments | ||
| hostname = parsed.hostname or "localhost" | ||
| curl_cmd = f"curl -is -u {parsed.username}:{parsed.password} -XDELETE http://{hostname}:15672/api/queues/{virtual_host_string}/{q}" | ||
| subprocess.call(curl_cmd.split(" "), stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) |
| all_celery_tasks = list(current_app.tasks.keys()) | ||
| all_celery_tasks = list(celery_app.tasks.keys()) | ||
|
|
||
| tasks = [task for task in all_celery_tasks if 'celery.' not in task] |
There was a problem hiding this comment.
[pylint] reported by reviewdog 🐶
W0621: Redefining name 'tasks' from outer scope (line 64) (redefined-outer-name)
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pr was ported from augurlabs/augur#3571, originally filed by @ANJAN672
Updates Celery from
~=5.5to>=5.6.0to fix a bug wheretask_idbecomesNoneduring exception handling while executing a task chain within a chord.This was reported in celery/celery#9774 and fixed in Celery 5.6.0.
Description
celery~=5.5→celery>=5.6.0in pyproject.tomluv.lock(Celery 5.5.3 → 5.6.2)This PR fixes #152
Notes for Reviewers
uv.lockupdatedSigned commits