Skip to content

Conversation

@lagerstrom
Copy link
Contributor

To make it possible for the consumer of the message to see the task ID of the given task. This is necessary when interacting with flower for example.

To make it possible for the consumer of the message to see the
task ID of the given task. This is necessary when interacting
with flower for example.
celery.go Outdated
const (
// ContextKeyTaskName is a context key to access task names.
ContextKeyTaskName contextKey = iota
ContextKeyTaskId
Copy link
Owner

Choose a reason for hiding this comment

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

Could you please rename it to ContextKeyTaskID and add a comment above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes ofc, comment added and name updated :)

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks!

@marselester marselester merged commit 9446fb6 into marselester:main Oct 15, 2025
3 of 4 checks passed
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.

2 participants