-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit metric of how long a task was enqueued (#1183)
* Emit metric of how long a task was enqueued This is being done mostly because of `label-analysis` task, where we want better understanding of how much time the tasks stay in the queue, and what's the impact of that in overall ATS. But this is a useful metric anyway to fine tune other parameters in celery, and to understand what is the gain of having dedicated queues and all that in hard numbers. So we're doing it for all tasks. The idea is simple: we add a header with the timestamp where the task was created (i.e. added to the queue) and on the other side, when it's executed, we emit a metric with the timedelta. [Coverage-Team #57](Extract time in queue metric for all worker's tasks) * Use isoformat instead of custom format for the header
- Loading branch information
1 parent
df09438
commit e61c91a
Showing
4 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters