Packages
honeydew
1.4.5
1.5.0
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-rc7
1.0.0-rc6
1.0.0-rc5
1.0.0-rc4
1.0.0-rc3
1.0.0-rc2
1.0.0-rc1
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Pluggable local/clusterable job queue focused on safety.
Current section
Files
Jump to
Current section
Files
README/success_and_failure_modes.md
# Failure Modes
When a worker crashes, a monitoring process runs the `handle_failure/3` function from the selected module on the queue's node. Honeydew ships with two failure modes, at present:
- [Abandon](https://hexdocs.pm/honeydew/Honeydew.FailureMode.Abandon.html) - Simply forgets about the job.
- [Move](https://hexdocs.pm/honeydew/Honeydew.FailureMode.Move.html) - Removes the job from the original queue, and places it on another.
- [Retry](https://hexdocs.pm/honeydew/Honeydew.FailureMode.Retry.html) - Re-attempts the job on its original queue a number of times, then calls another failure mode after the final failure.
See [Honeydew.start_queue/3](https://hexdocs.pm/honeydew/Honeydew.html#start_queue/3) to select a failure mode.
# Success Modes
When a job completes successfully, the monitoring process runs the `handle_success/2` function from the selected module on the queue's node. You'll likely want to use this callback for monitoring purposes. You can use a job's `:enqueued_at`, `:started_at` and `:completed_at` fields to calculate various time intervals.
See [Honeydew.start_queue/3](https://hexdocs.pm/honeydew/Honeydew.html#start_queue/3) to select a success mode.