Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
4d05531d
Commit
4d05531d
authored
Jul 15, 2015
by
Mathieu Giraud
Committed by
Vidjil Team
Jul 15, 2015
Browse files
scripts/scheduler-stats.py: duration of the scheduled tasks
parent
87f88de6
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/scripts/scheduler-stats.py
0 → 100644
View file @
4d05531d
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment