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

Improve the command line options #32

Closed
bensheldon opened this issue Jul 15, 2020 · 2 comments · Fixed by #33
Closed

Improve the command line options #32

bensheldon opened this issue Jul 15, 2020 · 2 comments · Fixed by #33

Comments

@bensheldon
Copy link
Owner

Ensure that specific queues and poll interval can be configured.

@bensheldon
Copy link
Owner Author

bensheldon commented Jul 15, 2020

Some research

Que:

  • '-i' '--poll-interval [INTERVAL]' "Set maximum interval between polls for available jobs in seconds (default: 5)",
  • '-v', '--version', "Print Que version and exit.",
    '-l', '--log-level [LEVEL]', "Set level at which to log to STDOUT " "(debug, info, warn, error, fatal) (default: info)",
  • '-p', '--worker-priorities [LIST]', "List of priorities to assign to workers (default: 10,30,50,any,any,any)",
  • '-q', '--queue-name [NAME]', "Set a queue name to work jobs from. " "Can be passed multiple times. " "(default: the default queue only)"
  • '-w', '--worker-count [COUNT]', "Set number of workers in process (default: 6)",
  • '--log-internals', "Log verbosely about Que's internal state. " "Only recommended for debugging issues",

Sidekiq

  • -c", "--concurrency INT", "processor threads to use"
  • "-d", "--daemon", "Daemonize process"
  • "-e", "--environment ENV", "Application environment"
  • "-g", "--tag TAG", "Process tag for procline"
  • "-q", "--queue QUEUE[,WEIGHT]",
  • "-P", "--pidfile PATH", "path to pidfile"
  • "-V", "--version", "Print version and exit"

Delayed Job:

  • '-e', '--environment=NAME'
  • --min-priority N', 'Minimum priority of jobs to run.'
  • '--max-priority N', 'Maximum priority of jobs to run.'
  • '-n', '--number_of_workers=workers', 'Number of unique workers to spawn'
  • '--pid-dir=DIR', 'Specifies an alternate directory in which to store the process ids.'
  • '--log-dir=DIR', 'Specifies an alternate directory in which to store the delayed_job log.'
  • '-i', '--identifier=n', 'A numeric identifier for the worker.'
  • '-m', '--monitor', 'Start monitor process.'
  • '--sleep-delay N', 'Amount of time to sleep when no jobs are found'
  • '-p', '--prefix NAME', 'String to be prefixed to worker process names'
  • '--queues=queues', 'Specify which queue DJ must look up for jobs'
  • '--queue=queue', 'Specify which queue DJ must look up for jobs'
  • '--pool=queue1[,queue2][:worker_count]', 'Specify queues and number of workers for a worker pool'
  • '--exit-on-complete', 'Exit when no more jobs are available to run. This will exit if all jobs are scheduled to run in the future.'
  • '--daemon-options a, b, c', Array, 'options to be passed through to daemons gem'

@bensheldon
Copy link
Owner Author

  # Potential formats:
  # 'mice,elephant' => Only queues mice and elephant
  # '-mice,elephant' => All queues except mice and elephant
  # '*:1;-mice,elephant,whale:1;mice:2,elephant,whale:2' => Multiple schedulers:
  #   - All queues, 1 thread
  #   - All queues except mice, elephant and whale, 1 thread
  #   - Mice queue, 2 threads
  #   - Elephant and whale queues, 2 threads

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 a pull request may close this issue.

1 participant