lib/pallets/cli.rb in pallets-0.9.0 vs lib/pallets/cli.rb in pallets-0.10.0
- old
+ new
@@ -61,9 +61,13 @@
opts.on('-f', '--max-failures NUM', Integer, 'Maximum allowed number of failures per task') do |max_failures|
Pallets.configuration.max_failures = max_failures
end
+ opts.on('-i', '--scheduler-polling-interval NUM', Integer, 'Seconds between scheduler backend polls') do |scheduler_polling_interval|
+ Pallets.configuration.scheduler_polling_interval = scheduler_polling_interval
+ end
+
opts.on('-l', '--failed-job-lifespan NUM', Integer, 'Seconds a job stays in the given up set') do |failed_job_lifespan|
Pallets.configuration.failed_job_lifespan = failed_job_lifespan
end
opts.on('-m', '--failed-job-max-count NUM', Integer, 'Maximum number of jobs in the given up set') do |failed_job_max_count|