diff --git a/code/jobs/ContentReviewNotificationJob.php b/code/jobs/ContentReviewNotificationJob.php index c884b0c..2d8546e 100644 --- a/code/jobs/ContentReviewNotificationJob.php +++ b/code/jobs/ContentReviewNotificationJob.php @@ -71,6 +71,14 @@ class ContentReviewNotificationJob extends AbstractQueuedJob implements QueuedJo return QueuedJob::QUEUED; } + public function setup() { + parent::setup(); + + // Recommended for long running jobs that don't increment 'currentStep' + // https://github.com/silverstripe-australia/silverstripe-queuedjobs + $this->currentStep = -1; + } + public function process() { $this->queueNextRun();