mirror of https://github.com/rq/rq.git
3e2e26e702
* Add an exception handler for the pubsub thread After a connection error to Redis the pubsub thread was stopped and the worker could not receive commands anymore. This commit adds an exception handler for the thread that adds a log message and ignores `redis.exceptions.ConnectionError`. Any other exception is re-raised. redis-py internal mechanism allows the pubsub thread to recover its connection and reinstall the pubsub channel subscription to allow the worker to receive commands again after connection errors. It tries to behave the same as the main worker loop retry mechanism but without the backoff wait factor. Fixes #1836 Fixes #2070 * Add test for untested line, improve logging and comments Add *args & **kwargs to tests.fixtures.raise_exc to pass tests with Python 3.7 |
||
---|---|---|
.. | ||
config_files | ||
ssl_config | ||
Dockerfile | ||
__init__.py | ||
fixtures.py | ||
test.json | ||
test_callbacks.py | ||
test_cli.py | ||
test_commands.py | ||
test_connection.py | ||
test_decorator.py | ||
test_dependencies.py | ||
test_executions.py | ||
test_fixtures.py | ||
test_group.py | ||
test_helpers.py | ||
test_intermediate_queue.py | ||
test_job.py | ||
test_queue.py | ||
test_registry.py | ||
test_results.py | ||
test_retry.py | ||
test_scheduler.py | ||
test_serializers.py | ||
test_timeouts.py | ||
test_utils.py | ||
test_worker.py | ||
test_worker_pool.py | ||
test_worker_registration.py |