Skip to content
Commit 53f3f551 authored by Qinusty's avatar Qinusty
Browse files

Overhaul internal messaging API

_context.py: Added helpers for the majority of MessageTypes,
start, failure and success have been avoided to avoid temptation to use
these throughout the code base. These should be called primarily from
timed_activity(). report_unhandled_exceptions() has been added as a
context manager to reduce the amount of places BUG messages are
generated from.

job.py, elementjob.py: Add helper functions to populate task_id kwarg. _fail() exists
purely to be overridden by ElementJob as it requires the scheduler kwarg
to be set to True.

Other: Switched to use _context.py message helpers throughout the code
base.
parent cc2745c3
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment