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

@@ -10,10 +10,11 @@ from app.errors import InvalidRequest
class JobIncompleteError(Exception):
def __init__(self, message):
self.message = message
self.status_code = 500
def to_dict_v2(self):
return {
'status_code': 500,
'status_code': self.status_code,
"errors": [
{
"error": 'JobIncompleteError',