|
|
@ -21,11 +21,11 @@ from rq.defaults import (DEFAULT_CONNECTION_CLASS, DEFAULT_JOB_CLASS,
|
|
|
|
DEFAULT_QUEUE_CLASS, DEFAULT_WORKER_CLASS,
|
|
|
|
DEFAULT_QUEUE_CLASS, DEFAULT_WORKER_CLASS,
|
|
|
|
DEFAULT_RESULT_TTL, DEFAULT_WORKER_TTL,
|
|
|
|
DEFAULT_RESULT_TTL, DEFAULT_WORKER_TTL,
|
|
|
|
DEFAULT_JOB_MONITORING_INTERVAL,
|
|
|
|
DEFAULT_JOB_MONITORING_INTERVAL,
|
|
|
|
DEFAULT_LOGGING_FORMAT, DEFAULT_LOGGING_DATE_FORMAT)
|
|
|
|
DEFAULT_LOGGING_FORMAT, DEFAULT_LOGGING_DATE_FORMAT,
|
|
|
|
|
|
|
|
DEFAULT_SERIALIZER_CLASS)
|
|
|
|
from rq.exceptions import InvalidJobOperationError
|
|
|
|
from rq.exceptions import InvalidJobOperationError
|
|
|
|
from rq.registry import FailedJobRegistry, clean_registries
|
|
|
|
from rq.registry import FailedJobRegistry, clean_registries
|
|
|
|
from rq.utils import import_attribute
|
|
|
|
from rq.utils import import_attribute
|
|
|
|
from rq.serializers import DefaultSerializer
|
|
|
|
|
|
|
|
from rq.suspension import (suspend as connection_suspend,
|
|
|
|
from rq.suspension import (suspend as connection_suspend,
|
|
|
|
resume as connection_resume, is_suspended)
|
|
|
|
resume as connection_resume, is_suspended)
|
|
|
|
from rq.worker_registration import clean_worker_registry
|
|
|
|
from rq.worker_registration import clean_worker_registry
|
|
|
@ -62,11 +62,11 @@ shared_options = [
|
|
|
|
default=DEFAULT_CONNECTION_CLASS,
|
|
|
|
default=DEFAULT_CONNECTION_CLASS,
|
|
|
|
help='Redis client class to use'),
|
|
|
|
help='Redis client class to use'),
|
|
|
|
click.option('--path', '-P',
|
|
|
|
click.option('--path', '-P',
|
|
|
|
default='.',
|
|
|
|
default=['.'],
|
|
|
|
help='Specify the import path.',
|
|
|
|
help='Specify the import path.',
|
|
|
|
multiple=True),
|
|
|
|
multiple=True),
|
|
|
|
click.option('--serializer', '-S',
|
|
|
|
click.option('--serializer', '-S',
|
|
|
|
default=DefaultSerializer,
|
|
|
|
default=DEFAULT_SERIALIZER_CLASS,
|
|
|
|
help='Path to serializer, defaults to rq.serializers.DefaultSerializer')
|
|
|
|
help='Path to serializer, defaults to rq.serializers.DefaultSerializer')
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|