Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
f4793c17
Commit
f4793c17
authored
Oct 10, 2014
by
Mathieu Giraud
Committed by
Vidjil Team
Oct 10, 2014
Browse files
task.py: set timeout to 2 hours
parent
4ac9f97f
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/models/task.py
View file @
f4793c17
# coding: utf8
TASK_TIMEOUT
=
2
*
3600
def
schedule_run
(
id_sequence
,
id_config
):
import
time
,
datetime
,
sys
,
os
.
path
from
subprocess
import
Popen
,
PIPE
,
STDOUT
,
os
...
...
@@ -43,7 +46,7 @@ def schedule_run(id_sequence, id_config):
program
=
db
.
config
[
id_config
].
program
##add task to scheduler
task
=
scheduler
.
queue_task
(
program
,
[
id_sequence
,
id_config
,
data_id
,
fuse_id
]
,
repeats
=
1
,
timeout
=
6000
)
,
repeats
=
1
,
timeout
=
TASK_TIMEOUT
)
db
.
results_file
[
data_id
]
=
dict
(
scheduler_task_id
=
task
.
id
)
filename
=
db
.
sequence_file
[
id_sequence
].
filename
...
...
Write
Preview
Markdown
is supported
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