gen_queue_exq v0.1.1 GenQueue.Adapters.ExqMock View Source
An adapter for GenQueue
to enable mock functionaility with Exq
.
Link to this section Summary
Functions
Push a job that will be returned to the current (or globally set) processes
mailbox. Please see GenQueue.Test
for further details
Callback implementation for GenQueue.Adapter.start_link/2
Link to this section Functions
Link to this function
handle_push(gen_queue, job, opts)
View Source
handle_push(GenQueue.t(), GenQueue.Adapters.Exq.job(), list()) :: {:ok, GenQueue.Adapters.Exq.pushed_job()} | {:error, any()}
Push a job that will be returned to the current (or globally set) processes
mailbox. Please see GenQueue.Test
for further details.
Parameters:
gen_queue
- Any GenQueue modulejob
- Any valid job formatopts
- A keyword list of job options
Options
:queue
- The queue to push the job to. Defaults to “default”.:delay
- Either aDateTime
or millseconds-based integer.
Returns:
{:ok, {module, args, opts}}
if the operation was successful{:error, reason}
if there was an error
Callback implementation for GenQueue.Adapter.start_link/2
.