Merge branch '3.0' into 3

This commit is contained in:
Daniel Hensby 2018-06-20 10:44:20 +01:00
commit c3a343d263
No known key found for this signature in database
GPG Key ID: D8DEBC4C8E7BC8B9

View File

@ -71,6 +71,14 @@ class ContentReviewNotificationJob extends AbstractQueuedJob implements QueuedJo
return QueuedJob::QUEUED; 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() public function process()
{ {
$this->queueNextRun(); $this->queueNextRun();