|
|
@ -191,7 +191,7 @@ def info(cli_config, interval, raw, only_queues, only_workers, by_queue, queues,
|
|
|
|
@click.argument('queues', nargs=-1)
|
|
|
|
@click.argument('queues', nargs=-1)
|
|
|
|
@pass_cli_config
|
|
|
|
@pass_cli_config
|
|
|
|
def worker(cli_config, burst, logging_level, name, results_ttl,
|
|
|
|
def worker(cli_config, burst, logging_level, name, results_ttl,
|
|
|
|
worker_ttl, job_monitoring_interval, verbose, quiet, sentry_dsn,
|
|
|
|
worker_ttl, job_monitoring_interval, disable_job_desc_logging, verbose, quiet, sentry_dsn,
|
|
|
|
exception_handler, pid, disable_default_exception_handler, queues,
|
|
|
|
exception_handler, pid, disable_default_exception_handler, queues,
|
|
|
|
log_format, date_format, **options):
|
|
|
|
log_format, date_format, **options):
|
|
|
|
"""Starts an RQ worker."""
|
|
|
|
"""Starts an RQ worker."""
|
|
|
@ -228,7 +228,8 @@ def worker(cli_config, burst, logging_level, name, results_ttl,
|
|
|
|
job_monitoring_interval=job_monitoring_interval,
|
|
|
|
job_monitoring_interval=job_monitoring_interval,
|
|
|
|
job_class=cli_config.job_class, queue_class=cli_config.queue_class,
|
|
|
|
job_class=cli_config.job_class, queue_class=cli_config.queue_class,
|
|
|
|
exception_handlers=exception_handlers or None,
|
|
|
|
exception_handlers=exception_handlers or None,
|
|
|
|
disable_default_exception_handler=disable_default_exception_handler
|
|
|
|
disable_default_exception_handler=disable_default_exception_handler,
|
|
|
|
|
|
|
|
log_job_description=not disable_job_desc_logging
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Should we configure Sentry?
|
|
|
|
# Should we configure Sentry?
|
|
|
|