Skip to content

Verify Celery 5.6.3 compatibility#845

Closed
mitchh456 wants to merge 2 commits into
scoutapp:masterfrom
mitchh456:fix/837-celery-563-compatibility
Closed

Verify Celery 5.6.3 compatibility#845
mitchh456 wants to merge 2 commits into
scoutapp:masterfrom
mitchh456:fix/837-celery-563-compatibility

Conversation

@mitchh456
Copy link
Copy Markdown
Contributor

Summary

  • Audited Scout's Celery instrumentation (src/scout_apm/celery.py) for compatibility with Celery 5.6.3
  • Confirmed Scout uses only signal handlers — no calls to get_connection or redis backend methods
  • The removal of deprecated redis get_connection args in Celery 5.6.3 does not affect Scout
  • Searched entire codebase: zero references to get_connection anywhere

Audit details

Scout's Celery integration connects to these signals only:

  • before_task_publish — adds timestamp header for queue time tracking
  • task_prerun — creates tracked request and span
  • task_postrun — stops the span
  • task_failure — tags errors and reports to ErrorMonitor

No interaction with Celery's redis connection handling, worker pool internals, or backend storage.

The tox.ini dependency (celery!=4.4.4) has no upper bound, so Celery 5.6.3 is already being tested in CI when it resolves as the latest version.

Test plan

  • Run existing Celery integration tests with Celery 5.6.3
  • Verify task tracking works with redis backend on Celery 5.6.3

Closes #837

🤖 Generated with Claude Code

mitchh456 and others added 2 commits March 31, 2026 19:33
Scout's Celery instrumentation uses signal handlers exclusively
(before_task_publish, task_prerun, task_postrun, task_failure) and
does not call get_connection or interact with Celery's redis backend
directly. The deprecated redis get_connection args removal in Celery
5.6.3 does not affect Scout.

Closes scoutapp#837

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mitchh456
Copy link
Copy Markdown
Contributor Author

Closing: reopening as a PR from origin instead of fork.

@mitchh456 mitchh456 closed this Apr 1, 2026
@mitchh456 mitchh456 deleted the fix/837-celery-563-compatibility branch April 1, 2026 15:12
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.

Celery 5.6.3 removes deprecated redis get_connection args — verify Scout instrumentation

1 participant