Skip to content
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

add periodic_task_name to headers #819

Closed

Conversation

AngryUbuntuNerd
Copy link

@AngryUbuntuNerd AngryUbuntuNerd commented Nov 4, 2024

There is an issue with periodic_task_name when using RabbitMQ, in that the field does not appear in the RabbitMQ message as a top-level-property - which is where it is sent in the process by django-celery-beat. This does work when using other Celery message brokers, i.e. Redis.

The underlying reason is that periodic_task_name is not in the list of allowed top-level-properties for AMQP (see amqp sourcecode) so it gets discarded when passed over to RabbitMQ.

This PR addresses the issue by additionally sending it as a message header.

See also celery/django-celery-results#376

@AngryUbuntuNerd
Copy link
Author

closed as its a duplicate of #812

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.

1 participant