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

RabbitMQ config & compute_all_grades_for_course ETA are unable to work together, causing unrecoverable error on celery #32811

Open
cc3613 opened this issue Jul 21, 2023 · 0 comments

Comments

@cc3613
Copy link

cc3613 commented Jul 21, 2023

Since RabbitMQ 3.8.16, the configuration consumer_timeout is introduced and defaults to 30 mins.

compute_all_grades_for_course ETA/countdown is set to an hour in code (why is it an hour anyway?)

celery would not ACK the task until countdown is over and task starts processing. RMQ waits for 30 minutes and not gets ACK, so it deems the consumer dead.

Here's official doc (it happens to : https://docs.celeryq.dev/en/stable/userguide/calling.html#eta-and-countdown

Here's the same issue describe on celery: celery/celery#6760

I cannot change the default consumer_timeout as I don't control the rmq. What's the easiest way to deal with this in edx code?

EDUCATOR-1088 for this change: https://github.com/openedx/edx-platform/pull/16165/files

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

No branches or pull requests

1 participant