lib/good_job/active_job_job.rb
def reschedule_job(scheduled_at = Time.current)
      with_advisory_lock do
        execution = head_execution(reload: true)

        raise ActionForStateMismatchError if execution.finished_at.present?

        execution = head_execution(reload: true)
        execution.update(scheduled_at: scheduled_at)
      end
    end
# Reschedule a scheduled job so that it executes immediately (or later) by the next available execution thread.
# @param scheduled_at [DateTime, Time] When to reschedule the job
# @return [void]
Reschedule a scheduled job so that it executes immediately (or later) by the next available execution thread.
Reschedule a scheduled job so that it executes immediately ( or later ) by the next available execution thread .
def reschedule_job(scheduled_at = Time.current)
      with_advisory_lock do
        execution = head_execution(reload: true)
        raise ActionForStateMismatchError if execution.finished_at.present?
        execution = head_execution(reload: true)
        execution.update(scheduled_at: scheduled_at)
      end
    end
def reschedule_job ( scheduled_at = Time . current ) with_advisory_lock do execution = head_execution ( reload : true ) raise ActionForStateMismatchError if execution . finished_at . present? execution = head_execution ( reload : true ) execution . update ( scheduled_at : scheduled_at ) end end
Reschedule a scheduled job so that it executes immediately (or later) by the next available execution thread.
Reschedule a scheduled job so that it executes immediately ( or later ) by the next available execution thread .
None
void
scheduled_at
When to reschedule the job
When to reschedule the job
current