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

Overhaul Message API

_context.py: message API standardisation, all messages should
come through context. Added skipped() for MessageType.SKIPPED.
Also added context.report_unhandled_exceptions() to standardise
catching unhandled exceptions and sending a BUG message.

job.py: Add context attribute for referencing the context during messaging
calls. Messaging helpers added to use context helpers with task_id kwarg.
_child_action() has been overhauled to no longer use parts of
timed_activity, it now takes advantage of timed_activity and helper
functions.

queue.py: Now takes advantage of context helper functions and uses
report_unhandled_exceptions instead of MessageType.BUG in _job_done().

Others: Removing redundant imports and changing to use context message
API.
parent 08d38437
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