mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-03 07:40:19 -04:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user