Skip to main content

queue_error_reply

Function queue_error_reply 

Source
pub fn queue_error_reply(context: &str, err: &HammerworkError) -> Response
Expand description

Turn a failed queue operation into a JSON error reply: a missing job is a 404, a transition the job’s status does not allow a 409, anything else a logged 500.