- Updated
Honeydew.cancel/1
to return{:error, :not_found}
instead ofnil
when a job is not found on the queue. This makes it simpler to pattern match against error conditions, since the other condition is{:error, :in_progress}
. - Changed
Honeydew.Queue.cancel/2
callback to return{:error, :not_found}
instead ofnil
when a job isn't found. This makes the return types the same asHoneydew.cancel/1
.
- Fixed issue where new workers would process jobs from suspended queues (#35)
- Docs and typespecs for the following functions
Honeydew.async/3
Honeydew.filter/2
Honeydew.resume/1
Honeydew.suspend/1
Honeydew.yield/2
- Removed
use Honeydew.Queue
in favor of@behaviour Honeydew.Queue
callbacks
- Added Honeydew.worker behaviour
- Relaxed typespec for
Honeydew.worker_spec/3
module_and_args
param (#27) - New docs for
Honeydew.FailureMode
Honeydew.FailureMode.Abandon
Honeydew.FailureMode.Move
Honeydew.FailureMode.Retry
Honeydew.Queue.ErlangQueue
Honeydew.Queue.Mnesia
- Validate arguments for success and failure modes