exq v0.13.2 Exq.Enqueuer
Enqueuer
Link to this section Summary
Functions
Enqueue a job immediately
Schedule a job to be enqueued at a specific time in the future
Schedule a job to be enqueued at in the future given by offset in milliseconds
Link to this section Functions
Link to this function
enqueue(pid, queue, worker, args)
Enqueue a job immediately.
Expected args:
pid
- PID for Exq Manager or Enqueuer to handle thisqueue
- Name of queue to useworker
- Worker module to targetargs
- Array of args to send to workeroptions
- job options, for example [max_retries:Integer
]
Returns:
{:ok, jid}
if the job was enqueued successfully, withjid
= Job ID.{:error, reason}
if there was an error enqueueing job
Link to this function
enqueue(pid, from, queue, worker, args)
Link to this function
enqueue(pid, from, queue, worker, args, options)
Link to this function
enqueue_at(pid, queue, time, worker, args)
Schedule a job to be enqueued at a specific time in the future.
Expected args:
pid
- PID for Exq Manager or Enqueuer to handle thisqueue
- name of queue to usetime
- Time to enqueueworker
- Worker module to targetargs
- Array of args to send to workeroptions
- job options, for example [max_retries:Integer
]
Link to this function
enqueue_at(pid, from, queue, time, worker, args)
Link to this function
enqueue_at(pid, from, queue, time, worker, args, options)
Link to this function
enqueue_in(pid, queue, offset, worker, args)
Schedule a job to be enqueued at in the future given by offset in milliseconds.
Expected args:
pid
- PID for Exq Manager or Enqueuer to handle thisqueue
- Name of queue to useoffset
- Offset in seconds in the future to enqueueworker
- Worker module to targetargs
- Array of args to send to workeroptions
- job options, for example [max_retries:Integer
]
Link to this function
enqueue_in(pid, from, queue, offset, worker, args)
Link to this function
enqueue_in(pid, from, queue, offset, worker, args, options)
Link to this function