

The worker tells the system that it will begin workīy setting its status to busy and registers job in the StartedJobRegistry.Ī child process (the “work horse”) is forked off to do the actual work in If all queues are empty and the worker is running in burst mode, quit now. A job is popped from any of the given Redis queues. The worker registers itself to the system so it knows The life-cycle of a worker consists of a few phases: -maintenance-interval: defaults to 600 seconds.-max-idle-time: if specified, worker will wait for X seconds for a job to arrive before shuttind down.-dequeue-strategy: The strategy to dequeue jobs from multiple queues (one of default, random or round_robin, defaults to default).-serializer: Path to serializer object (e.g “rq.serializers.DefaultSerializer” or “rq.serializers.JSONSerializer”).-max-jobs: Maximum number of jobs to execute.-disable-job-desc-logging: Turn off job description logging.


In addition to -burst, rq worker also accepts these arguments: Just to scale up your workers temporarily during peak periods. This can be useful for batch work that needs to be processed periodically, or *** Listening for work on high, default, low
