Update websockets for pending approvals, change timeout expiration to

This commit is contained in:
beeankha
2019-08-09 20:59:41 -04:00
committed by Ryan Petrello
parent 7814592285
commit f6f6e5883a
3 changed files with 4 additions and 4 deletions

View File

@@ -527,7 +527,7 @@ class TaskManager():
if task.timeout == 0:
continue
if (now - task.created) >= approval_timeout_seconds:
logger.info("The approval node {} ({}) has expired after {} seconds.".format(task.name, task.pk, task.timeout))
logger.warn("The approval node {} ({}) has expired after {} seconds.".format(task.name, task.pk, task.timeout))
task.timed_out = True
task.status = 'failed'
task.job_explanation = _("This approval node has timed out.")