TaskBunny v0.3.2 TaskBunny.Message View Source
Functions that work on TaskBunny messages.
It’s a semi private module used by Job or Worker. You shouldn’t have to deal with it normally.
However in case you need to encode/decode TaskBunny messages, this module will help.
Link to this section Summary
Functions
Add an error log to message body
Decode message body in JSON to map data
Similar to decode/1 but raises an exception on error
Encode message body in JSON with job and argument
Similar to encode/2 but raises an exception on error
Returns a number of errors occurred for the message
Link to this section Functions
add_error_log(String.t() | map(), TaskBunny.JobError.t()) :: String.t() | map()
Add an error log to message body.
Decode message body in JSON to map data.
Similar to decode/1 but raises an exception on error.
Encode message body in JSON with job and argument.
Similar to encode/2 but raises an exception on error.
Returns a number of errors occurred for the message.