Commit 3eb56793 authored by Daniele Venzano's avatar Daniele Venzano

Fix run time quota check

parent 6c84bdd4
......@@ -417,6 +417,6 @@ class APIEndpoint:
if runtime_limit == 0:
continue
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))
self.execution_terminate(e.owner, e.id)
Markdown is supported
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