Module: RocketJob::Plugins::Restart

Extended by:
ActiveSupport::Concern
Included in:
Jobs::DirmonJob
Defined in:
lib/rocket_job/plugins/restart.rb

Overview

Automatically starts a new instance of this job anytime it fails, aborts, or completes. Failed jobs are aborted so that they cannot be restarted. On destroy this job is destroyed without starting a new copy. Abort the job first to get it to start a new instance before destroying. Include RocketJob::Plugins::Singleton to prevent multiple copies of a job from running at the same time.

Note:

  • The job will not be restarted if:

    • A validation fails after cloning this job.

    • The job has expired.

Defined Under Namespace

Modules: ClassMethods