Add celery task to check job finished

- celery task called after countdown of 60 minutes from start of job processing
This commit is contained in:
Ken Tsang
2017-10-11 18:14:56 +01:00
parent 92508d3b96
commit c29fc8cfa4
5 changed files with 58 additions and 41 deletions

View File

@@ -19,6 +19,7 @@ if os.environ.get('VCAP_SERVICES'):
class QueueNames(object):
CHECK_JOBS = 'check-job-status-tasks'
PERIODIC = 'periodic-tasks'
PRIORITY = 'priority-tasks'
DATABASE = 'database-tasks'
@@ -34,6 +35,7 @@ class QueueNames(object):
@staticmethod
def all_queues():
return [
QueueNames.CHECK_JOBS,
QueueNames.PRIORITY,
QueueNames.PERIODIC,
QueueNames.DATABASE,