Commit 4d05531d authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

scripts/scheduler-stats.py: duration of the scheduled tasks

parent 87f88de6
for row in db(db.scheduler_run).select():
duration = int((row.stop_time - row.start_time).total_seconds()) if row.stop_time else None
print duration, "\t%s" % row.status, "\t%s" % row.task_id
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment