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.
Cyrille Lavigne 6fc9454675
Handle deserializing failures gracefully (#1428)
* adds unit test for a deserialization error

This tests that deserialization exceptions are properly logged, and fails in
the manner described in #1422 .

* Catch deserializing errors in Worker.handle_exception()

This fixes #1422 , and makes

tests/test_worker.py::TestWorker::test_deserializing_failure_is_handled

pass.

* made unit test less specific

This is required to get the test to pass under other serializers / other
python versions.

* Added generic DeserializationError

* switched ValueError to DeserializationError in a test

The changed test is creating an invalid job, which now raises
DeserializationError when data is accessed, as opposed to ValueError.
4 years ago
..
config_files RQ v1.0! (#1059) 6 years ago
ssl_config Fix RQScheduler when run with SSL connection (#1383) 4 years ago
__init__.py Fix RQScheduler when run with SSL connection (#1383) 4 years ago
fixtures.py Replace enum function with internal Enum class (#1459) 4 years ago
test_cli.py Add environment variables for connection (#1472) 4 years ago
test_commands.py Add a "stopped" JobStatus and the machinery to properly handle it (#1394) 4 years ago
test_connection.py Fixes Job.fetch when return value is unpickleable (#1184) 5 years ago
test_decorator.py Allow retries to be set through decorator (#1319) 4 years ago
test_fixtures.py Multidependencies (#1397) 4 years ago
test_helpers.py Restored the ability to specify connection params in config 10 years ago
test_job.py Handle deserializing failures gracefully (#1428) 4 years ago
test_queue.py Added job.worker_name (#1375) 4 years ago
test_registry.py Jobs that get cleaned up should also be retried (#1467) 4 years ago
test_retry.py Jobs that get cleaned up should also be retried (#1467) 4 years ago
test_scheduler.py Make RQScheduler work with a serializer (#1455) 4 years ago
test_sentry.py Replace enum function with internal Enum class (#1459) 4 years ago
test_serializers.py Use pickle.HIGHEST_PROTOCOL by default (#1254) 5 years ago
test_utils.py clean_worker_registry cleans in batches to prevent submitting too muc… (#1390) 4 years ago
test_worker.py Handle deserializing failures gracefully (#1428) 4 years ago
test_worker_registration.py clean_worker_registry cleans in batches to prevent submitting too muc… (#1390) 4 years ago