Provide a celery task init() function

Bug #827349 reported by Muharem Hrnjadovic
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
High
Anton Gritsay

Bug Description

The celery task init() function will be called by every celery task. If it returns False the task will terminate immediately.
The init() function should
    - check whether the job in question is still alive and return False if this is not the case
    - initialise logging using a logger adapter object, http://docs.python.org/library/logging.html#loggeradapter-objects and make sure that way that the job_id appears in the routing key

tags: added: celery job-supervision
Changed in openquake:
status: New → Confirmed
importance: Undecided → High
milestone: none → 0.4.3
Anton Gritsay (angri)
Changed in openquake:
assignee: nobody → Anton Gritsay (angri)
status: Confirmed → In Progress
Anton Gritsay (angri)
Changed in openquake:
status: In Progress → Fix Committed
Changed in openquake:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.