mirror of https://github.com/peter4431/rq.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
In #1496, we observed a situation where the `work()` method crashes after `.subscribe()`, but prior to the `try/except` block which normally cleans up after `.subscribe()`. Specifically, `.subscribe()` launches a thread in non-daemon mode. Because of that setting, Python will keep the calling worker process active, even if the main thread has crashed. This resulted in a syndrome where a worker process was running, but doing no work. The change launches this thread in daemon mode, i.e. prevents a "zombie" pubsub thread from keeping the process up. (An additional change we could make, discussed in #1496 but deferred, would be to improve the error handling/trapping scope in `.work()` such that all failures trigger resource cleanup.) |
4 years ago | |
|---|---|---|
| .. | ||
| cli | 4 years ago | |
| compat | 5 years ago | |
| contrib | 6 years ago | |
| __init__.py | 5 years ago | |
| command.py | 4 years ago | |
| connections.py | 7 years ago | |
| decorators.py | 5 years ago | |
| defaults.py | 4 years ago | |
| dummy.py | 12 years ago | |
| exceptions.py | 4 years ago | |
| job.py | 4 years ago | |
| local.py | 5 years ago | |
| logutils.py | 5 years ago | |
| queue.py | 4 years ago | |
| registry.py | 4 years ago | |
| scheduler.py | 4 years ago | |
| serializers.py | 5 years ago | |
| suspension.py | 8 years ago | |
| timeouts.py | 5 years ago | |
| utils.py | 4 years ago | |
| version.py | 4 years ago | |
| worker.py | 4 years ago | |
| worker_registration.py | 5 years ago | |