Bolt v0.1.6 Bolt.Queue View Source

Queue is the primary module to interact with the job queue.

Link to this section Summary

Functions

Checksout the next job from the queue if it exists. This will copy the job to the inprogress backup to protect against lost jobs

Adds a job to the queue if it exists

Returns a running queue by name

Marks a job as finished. It will be removed from inprogress and its job data will be removed

initializes the queue by starting each of the schedulers defined in the config

Returns the worker module assigned in the config for a queue

Pulls all inprogress jobs for this queue back into the queue to be run immediately

Returns the list of schedulers

Sets the max worker count for the scheduler

Start a new Queue which can contain may schedulers

Returns a the status for each scheduler and its workers

Link to this section Functions

Checksout the next job from the queue if it exists. This will copy the job to the inprogress backup to protect against lost jobs.

Link to this function enqueue(queue_name, job_params) View Source

Adds a job to the queue if it exists.

Link to this function find_schedulers(schedulers_name) View Source

Returns a running queue by name.

Link to this function finish(queue_name, job_id) View Source

Marks a job as finished. It will be removed from inprogress and its job data will be removed.

initializes the queue by starting each of the schedulers defined in the config.

Link to this function module_for_queue(queue_name) View Source

Returns the worker module assigned in the config for a queue.

Link to this function resume_inprogress(queue_name) View Source

Pulls all inprogress jobs for this queue back into the queue to be run immediately.

Returns the list of schedulers

Link to this function set_worker_max(schedulers_name, worker_max) View Source

Sets the max worker count for the scheduler.

Start a new Queue which can contain may schedulers

Returns a the status for each scheduler and its workers.