ol-infrastructure icon indicating copy to clipboard operation
ol-infrastructure copied to clipboard

Alert on time between when Celery task is added to queue and completes > N

Open feoh opened this issue 1 year ago • 1 comments

Description/Context

The idea is to alert when the queue is backed up.

Plan/Design

I don't honestly know what's involved here or whether or not celery-monitoring is a good candidate for this work.

feoh avatar Jun 12 '24 19:06 feoh

This issue on celery suggests adding the enqueued time to the request/headers: https://www.github.com/celery/celery/issues/5696

It's not implemented yet but there are some workaround solutions in the comments. If we setup that and then log the delta as the task completes that should let us graph/alert on it.

rhysyngsun avatar Jun 12 '24 19:06 rhysyngsun