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.
mike w 47110806d1
bugfix: worker: Launch pubsub thread in `daemon` mode. (#1559)
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.)
3 years ago
..
cli RPass serializer to queue at cli (#1556) 3 years ago
compat Replace enum function with internal Enum class (#1459) 4 years ago
contrib Add sentry_debug and sentry_ca_certs params (#1229) 5 years ago
__init__.py Job retry feature. Docs WIP (#1299) 4 years ago
command.py Respect serializer (#1538) 3 years ago
connections.py modify zadd calls for redis-py 3.0 (#1016) 6 years ago
decorators.py Replace enum function with internal Enum class (#1459) 4 years ago
defaults.py Success and failure callbacks (#1480) 4 years ago
dummy.py Enable the most modern Python syntax. 11 years ago
exceptions.py Handle deserializing failures gracefully (#1428) 4 years ago
job.py Main worker should use zadd(xx=True) to update heartbeat. (#1550) 3 years ago
local.py Replace enum function with internal Enum class (#1459) 4 years ago
logutils.py log messages < error is now output to stdout instead of stderr (#1312) 4 years ago
queue.py Add missing functionality for CanceledJobRegistry (#1560) 3 years ago
registry.py Add missing functionality for CanceledJobRegistry (#1560) 3 years ago
scheduler.py Add more tolerance to scheduler heartbeat (#1555) 3 years ago
serializers.py Fix custom serializer in job fetches (#1381) 4 years ago
suspension.py Fixed #812 - Send heartbeat during suspension check 7 years ago
timeouts.py Replace enum function with internal Enum class (#1459) 4 years ago
utils.py Extract `Job.get_call_string` logic to `utils.get_call_string` (#1499) 4 years ago
version.py RPass serializer to queue at cli (#1556) 3 years ago
worker.py bugfix: worker: Launch pubsub thread in `daemon` mode. (#1559) 3 years ago
worker_registration.py clean_worker_registry cleans in batches to prevent submitting too muc… (#1390) 4 years ago