Use ->push not lazyPush for PublishStashedFile job
Follow up 4db0b0cb44
Change-Id: I1941372dd9a498ea286db75f16be52b549c6bb20
This commit is contained in:
parent
58fdf9d660
commit
10a7d46ac4
1 changed files with 4 additions and 1 deletions
|
|
@ -1068,7 +1068,10 @@ class ApiUpload extends ApiBase {
|
|||
$this->mParams['filekey'],
|
||||
[ 'result' => 'Poll', 'stage' => 'queued', 'status' => Status::newGood() ]
|
||||
);
|
||||
$this->jobQueueGroup->lazyPush( new PublishStashedFileJob(
|
||||
// Unlike AssembleUploadChunksJob, we do not do any writes on the main
|
||||
// transaction (UploadBase::setSessionStatus uses the main stash) so we
|
||||
// can push this job directly.
|
||||
$this->jobQueueGroup->push( new PublishStashedFileJob(
|
||||
[
|
||||
'filename' => $this->mParams['filename'],
|
||||
'filekey' => $this->mParams['filekey'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue