lib/good_job.rb in good_job-3.4.7 vs lib/good_job.rb in good_job-3.4.8
- old
+ new
@@ -55,10 +55,10 @@
# @!scope class
# Whether to preserve job records in the database after they have finished (default: +true+).
# By default, GoodJob deletes job records after the job is completed successfully.
# If you want to preserve jobs for latter inspection, set this to +true+.
# If you want to preserve only jobs that finished with error for latter inspection, set this to +:on_unhandled_error+.
- # @return [Boolean, nil]
+ # @return [Boolean, Symbol, nil]
mattr_accessor :preserve_job_records, default: true
# @!attribute [rw] retry_on_unhandled_error
# @!scope class
# Whether to re-perform a job when a type of +StandardError+ is raised to GoodJob (default: +false+).