Module: ActiveRecord::Railties::JobCheckpoints
- Defined in:
- lib/active_record/railties/job_checkpoints.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#checkpoint! ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/active_record/railties/job_checkpoints.rb', line 6 def checkpoint! if ActiveRecord.all_open_transactions.any? raise ActiveJob::Continuation::CheckpointError, "Cannot checkpoint job with open transactions" else super end end |