Skip to content

fix(deps): update Celery to 5.6.0+ to fix task_id None error#429

Open
MoralCode wants to merge 4 commits into
mainfrom
ANJAN672/fix/update-celery-to-5.6.0
Open

fix(deps): update Celery to 5.6.0+ to fix task_id None error#429
MoralCode wants to merge 4 commits into
mainfrom
ANJAN672/fix/update-celery-to-5.6.0

Conversation

@MoralCode

@MoralCode MoralCode commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

This pr was ported from augurlabs/augur#3571, originally filed by @ANJAN672

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.

Description

  • Updated celery~=5.5celery>=5.6.0 in pyproject.toml
  • Regenerated uv.lock (Celery 5.5.3 → 5.6.2)
  • All unit tests pass ✅

This PR fixes #152

Notes for Reviewers

  • This is a dependency version bump to pull in an upstream bug fix
  • No code changes required, only pyproject.toml and uv.lock updated
  • Tested locally: Celery imports correctly and all tests pass

Signed commits

  • Yes, I signed my commits.

ANJAN672 added 4 commits June 27, 2026 15:54
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>
@MoralCode MoralCode added dependencies Pull requests that update a dependency file waiting This change is waiting for some other changes to land first labels Jun 27, 2026
# 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]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0621: Redefining name 'tasks' from outer scope (line 64) (redefined-outer-name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file waiting This change is waiting for some other changes to land first

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update celery to 5.6.0 to avoid task id none error during exception handling while executing a task chain within a chord

3 participants