HomeSoftware Heritage

Add basic stats to tasks

Description

Add basic stats to tasks

This just increments a counter for started tasks, ended tasks, tasks that failed
with an exception. It also registers a timer for every task run.

Close T1460.

Details

Provenance
olasdAuthored on Dec 19 2018, 3:59 PM
olasdPushed on Feb 6 2019, 1:12 PM
Differential Revision
D1007: Add basic stats to tasks
Parents
rDSCHabfe3db7f227: Allow to override celery config file name via the SWH_CONFIG_FILENAME env var
Branches
Unknown
Tags
Unknown
Tasks
T1460: Add task related metrics to swh-scheduler
Build Status
Buildable 4025
Build 5284: test-and-build