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

add jobs:modify_queue/2 #3

Merged
merged 1 commit into from
Sep 22, 2014
Merged

add jobs:modify_queue/2 #3

merged 1 commit into from
Sep 22, 2014

Conversation

uwiger
Copy link
Owner

@uwiger uwiger commented Sep 21, 2014

Make it possible to tweak max_size and max_time via jobs:modify_queue(QueueName, Options)

@uwiger
Copy link
Owner Author

uwiger commented Sep 21, 2014

Example:

Eshell V5.10.3  (abort with ^G)
1> application:start(jobs).
ok
2> jobs:add_queue(q, [{regulators,[{rate,[{limit,100}]}]},{max_time,1000},{max_size,5000}]).
ok
3> jobs:queue_info(q, max_size).
5000
4> jobs:queue_info(q, max_time).
1000
5> jobs:modify_queue(q, [{max_size, 3000},{max_time,7000}]).
ok
6> jobs:queue_info(q, max_size).                            
3000
7> jobs:queue_info(q, max_time).                            
7000

uwiger added a commit that referenced this pull request Sep 22, 2014
@uwiger uwiger merged commit 592502f into master Sep 22, 2014
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