Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max parallel execution configurable for each queue #872

Closed
wants to merge 1 commit into from

Conversation

papa-cool
Copy link

This change with another on delayed_job_active_record permits to configure a limit of concurrent execution of a queue.
Follows an example of configuration in the config/initializers/delayed_job.rb where "import" and "export" are queue names.
Delayed::Worker.default_max_workers_by_queue = 3
Delayed::Worker.max_workers_by_queue = {"import" => 1, "export" => 2}

This configuration permits to optimize the use of the workers, and in the same time to control that one queue don't take all available workers or that two jobs from one specific queue could not be execute in the same time.

@papa-cool papa-cool closed this Nov 24, 2017
@papa-cool papa-cool deleted the cq branch November 24, 2017 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant