mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Merge branch '3.0' into 3
This commit is contained in:
commit
c3a343d263
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user