diff --git a/src/Jobs/ContentReviewNotificationJob.php b/src/Jobs/ContentReviewNotificationJob.php index fae3a3b..27a98b2 100644 --- a/src/Jobs/ContentReviewNotificationJob.php +++ b/src/Jobs/ContentReviewNotificationJob.php @@ -80,6 +80,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();