mirror of https://github.com/peter4431/rq.git
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.main
parent
73d0210d65
commit
6fc9454675
Loading…
Reference in New Issue