-
Notifications
You must be signed in to change notification settings - Fork 32
Generate unique Celery worker name #7827
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
Generate unique Celery worker name #7827
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7827 +/- ##
==========================================
- Coverage 85.06% 84.96% -0.11%
==========================================
Files 1803 1807 +4
Lines 70100 69649 -451
Branches 1218 1218
==========================================
- Hits 59628 59174 -454
- Misses 10130 10134 +4
+ Partials 342 341 -1
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces changes to generate unique Celery worker names by appending a Task ID to hostnames in the Docker Compose configuration.
- Updated hostname for "sto-worker" to include Task.ID
- Updated hostname for "sto-worker-cpu-bound" to include Task.ID
Comments suppressed due to low confidence (2)
services/docker-compose.yml:1249
- Appending Task.ID to the hostname enhances uniqueness. Please verify that Task.ID is consistently available and fits the overall worker naming scheme.
hostname: "sto-worker-{{.Node.Hostname}}-{{.Task.Slot}}-{{.Task.ID}}"
services/docker-compose.yml:1259
- The updated hostname for CPU-bound workers now includes Task.ID, which should help in generating unique worker names. Ensure that this new format is compatible with all related systems.
hostname: "sto-worker-cpu-bound-{{.Node.Hostname}}-{{.Task.Slot}}-{{.Task.ID}}"
|
|
@Mergifyio queue |
🟠 Waiting for conditions to match
|
5cc2bdd
into
ITISFoundation:master



What do these changes do?
This PR introduces changes to generate unique Celery worker names by appending a Task ID to hostnames in the Docker Compose configuration.
As you can see in the example below, the Celery workers won't collide anymore: e.g.
celery@sto-worker-romeo-wkst-l854yndv9usxrqv1ccxn4vat5.The issue happened during roll-out of new version of worker services.
Related issue/s
How to test
Dev-ops