Exq.Enqueuer.enqueue_all
You're seeing just the function
enqueue_all
, go back to Exq.Enqueuer module for more information.
Schedule multiple jobs to be atomically enqueued at specific times
Expected args:
pid
- PID for Exq Manager or Enqueuer to handle thisjobs
- List of jobs each defined as[queue, worker, args, options]
queue
- Name of queue to useworker
- Worker module to targetargs
- Array of args to send to workeroptions
: Following job options are supportedmax_retries
(integer) - max retry countjid
(string) - user supplied jid valueunique_for
(integer) - lock expiration duration in secondsunique_token
(string) - unique lock token. By default the token is computed based on the queue, class and args.unique_until
(atom) - defaults to:success
. Supported values are:success
- unlock on job success:start
- unlock on job first execution:expiry
- unlock when the lock is expired. Depends onunique_for
value.
schedule
- (optional) - used to schedule the job for future. If not present, job will be enqueued immediately by default.{:in, seconds_from_now}
{:at, datetime}