method

checkpoint!

rails latest stable - Class: ActiveRecord::Railties::JobCheckpoints

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

checkpoint!()
public

No documentation available.

# File activerecord/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