gen_queue_exq v0.1.1 GenQueue.Adapters.Exq View Source
Link to this section Summary
Link to this section Types
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 for Exq to consume.
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
.