Révision 3ec624e8
Update task's states to work with Celery 3.0
| plugins/celery/celery_tasks-2 | ||
|---|---|---|
| 61 | 61 |
'task_details': '/api/task/name/%s', |
| 62 | 62 |
} |
| 63 | 63 |
TASK_STATES = ( |
| 64 |
'task-accepted', |
|
| 65 |
'task-received', |
|
| 66 |
'task-succeeded', |
|
| 67 |
'task-failed', |
|
| 68 |
'task-retried', |
|
| 64 |
'PENDING', |
|
| 65 |
'RECEIVED', |
|
| 66 |
'STARTED', |
|
| 67 |
'SUCCESS', |
|
| 68 |
'FAILURE', |
|
| 69 |
'REVOKED', |
|
| 70 |
'RETRY' |
|
| 69 | 71 |
) |
| 70 | 72 |
|
| 71 | 73 |
def get_data(what, api_url, *args): |
Formats disponibles : Unified diff