Merge branch '3.0' into 4.0
This commit is contained in:
commit
92770b01c6
|
@ -80,6 +80,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();
|
||||||
|
|
Loading…
Reference in New Issue