mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
3b5862492a
In #2531, we saw how an IO exception in the logger could cause a job to fail and be deleted before it reached the RetryJobs block, causing job loss. To fix this, we disabled job acknowledgement until job execution starts but this has the bad side effect of duplicating jobs if the user is running a reliable scheme and the error happens after the RetryJobs middleware but before execution starts. Instead we flip the middleware ordering; logging now happens within the retry block. We would lose context-specific logging within retry so we move the context log setup out of the middleware into the Processor. With these changes, we can properly retry and acknowledge even if there are errors within the initial server middleware and executor calls. This code path has been reimplemented in Sidekiq 5.0 so this change only applies to 4.x. |
||
---|---|---|
.. | ||
fixtures | ||
config.yml | ||
env_based_config.yml | ||
fake_env.rb | ||
helper.rb | ||
test_actors.rb | ||
test_api.rb | ||
test_cli.rb | ||
test_client.rb | ||
test_exception_handler.rb | ||
test_extensions.rb | ||
test_fetch.rb | ||
test_launcher.rb | ||
test_logging.rb | ||
test_manager.rb | ||
test_middleware.rb | ||
test_processor.rb | ||
test_rails.rb | ||
test_redis_connection.rb | ||
test_retry.rb | ||
test_retry_exhausted.rb | ||
test_scheduled.rb | ||
test_scheduling.rb | ||
test_sidekiq.rb | ||
test_testing.rb | ||
test_testing_fake.rb | ||
test_testing_inline.rb | ||
test_util.rb | ||
test_web.rb | ||
test_web_auth.rb | ||
test_web_helpers.rb | ||
test_web_sessions.rb |