Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
3eb56793
Commit
3eb56793
authored
Aug 24, 2018
by
Daniele Venzano
Browse files
Fix run time quota check
parent
6c84bdd4
Changes
1
Show whitespace changes
Inline
Side-by-side
zoe_api/api_endpoint.py
View file @
3eb56793
...
@@ -417,6 +417,6 @@ class APIEndpoint:
...
@@ -417,6 +417,6 @@ class APIEndpoint:
if
runtime_limit
==
0
:
if
runtime_limit
==
0
:
continue
continue
runtime_limit
=
timedelta
(
hours
=
runtime_limit
)
runtime_limit
=
timedelta
(
hours
=
runtime_limit
)
if
e
.
time_submit
+
runtime_limit
>
datetime
.
utcnow
():
if
e
.
time_submit
+
runtime_limit
<
datetime
.
utcnow
():
log
.
info
(
'Automatically terminating execution {} that has exceeded the run time limit'
.
format
(
e
.
id
))
log
.
info
(
'Automatically terminating execution {} that has exceeded the run time limit'
.
format
(
e
.
id
))
self
.
execution_terminate
(
e
.
owner
,
e
.
id
)
self
.
execution_terminate
(
e
.
owner
,
e
.
id
)
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