Use ->push not lazyPush for PublishStashedFile job

Follow up 4db0b0cb44

Change-Id: I1941372dd9a498ea286db75f16be52b549c6bb20
This commit is contained in:
Brian Wolff 2024-02-27 08:28:25 -08:00
parent 58fdf9d660
commit 10a7d46ac4

View file

@ -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'],