Commit 4869ddd3 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

write full traceback in the job log in case of MonitorTask failure

WIP on #205
parent 3e74f667
from ippidb.models import Job
import traceback
from celery import Task, states
from django_celery_results.models import TaskResult
from ippidb.models import Job
class AlreadyExistError(Exception):
......@@ -42,7 +44,7 @@ class MonitorTask(Task):
super(MonitorTask, self).on_success(retval, task_id, args, kwargs)
def on_failure(self, exc, task_id, args, kwargs, einfo):
super(MonitorTask, self).on_failure(exc, task_id, args, kwargs, einfo)
def update_state(self, task_id=None, state=None, meta=None, **kwargs):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment