Merge branch 'rei/task_scheduler_better_logging' into matrix-org-hotfixes

This commit is contained in:
Olivier 'reivilibre 2024-05-18 20:51:16 +01:00
commit cdd333b4f1

View file

@ -367,7 +367,7 @@ class TaskScheduler:
logger.info( logger.info(
"Task %s: %.3fsec (%.3fsec, %.3fsec) (%.3fsec/%.3fsec/%d)" "Task %s: %.3fsec (%.3fsec, %.3fsec) (%.3fsec/%.3fsec/%d)"
" [%d dbevts] %r", " [%d dbevts] %r, %r",
state, state,
active_time, active_time,
usage.ru_utime, usage.ru_utime,
@ -376,6 +376,7 @@ class TaskScheduler:
usage.db_txn_duration_sec, usage.db_txn_duration_sec,
int(usage.db_txn_count), int(usage.db_txn_count),
usage.evt_db_fetch_count, usage.evt_db_fetch_count,
task.resource_id,
task.params, task.params,
) )