mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
d4b012bd8c
When I moved the reloader inside the block so that any errors it raised would be handled properly, the `job` local variable was pushed into a nested scope, which meant it wasn't accessible from the rescue block any more. This changed the meaning of `job` in that rescue block from the local variable to the `attr_reader` with the same name. We don't need to reload the application before parsing the job payload, so we can move this work outside the reloader block so that the job hash is accessible in the rescue block again. |
||
---|---|---|
.. | ||
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_helpers.rb |