Exq.Enqueuer.enqueue
You're seeing just the function
enqueue
, go back to Exq.Enqueuer module for more information.
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
, jid:String
]
Returns:
{:ok, jid}
if the job was enqueued successfully, withjid
= Job ID.{:error, reason}
if there was an error enqueueing job