1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/test/jobs
Steven Bull 452f9ee0bc Add error logging to Active Job
Active Job logging instrumentation is changed to log errors (with
backtrace) when a job raises an exception in #perform. This improves
debugging during development and test with the default configuration.

Prior to Rails 5, the default development configuration ran jobs with
InlineAdapter, which would raise exceptions to the caller and be
shown in the development log. In Rails 5, the default adapter was
changed to AsyncAdapter, which would silently swallow exceptions
and log a "Performed SomeJob from Async..." info message. This could
be confusing to a developer, as it would seem that the job was
performed successfully.

This patch removes the "Performed..." info message from the log
and adds an error-level "Error performing SomeJob..." log message
which includes the exception backtrace for jobs that raise an
exception within the #perform method. It provides this behavior for
all adapters.
2017-03-27 17:10:24 -07:00
..
application_job.rb remove useless import 2016-12-30 19:40:26 +08:00
callback_job.rb Add Style/EmptyLines in .rubocop.yml and remove extra empty lines 2016-08-07 17:50:59 +09:00
gid_job.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
hello_job.rb applies new string literal convention in activejob/test 2016-08-06 18:41:18 +02:00
inherited_job.rb use descendants to get class that inherited ActiveJob::Base 2016-09-05 09:21:10 +09:00
kwargs_job.rb applies new string literal convention in activejob/test 2016-08-06 18:41:18 +02:00
logging_job.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
nested_job.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
overridden_logging_job.rb Fix jobs overriding AJ::Base#logger 2016-06-17 13:04:17 -04:00
provider_jid_job.rb applies new string literal convention in activejob/test 2016-08-06 18:41:18 +02:00
queue_adapter_job.rb correctly set test adapter when configure the queue adapter on a per job (#26690) 2017-01-31 16:37:16 -05:00
queue_as_job.rb applies new string literal convention in activejob/test 2016-08-06 18:41:18 +02:00
rescue_job.rb Add error logging to Active Job 2017-03-27 17:10:24 -07:00
retry_job.rb Yield the job instance so you have access to things like job.arguments on the custom logic after retries fail 2016-08-16 16:01:59 -07:00
translated_hello_job.rb applies new string literal convention in activejob/test 2016-08-06 18:41:18 +02:00