chg: [internal] Move attachment scanning to prio queue

pull/9480/head
Jakub Onderka 2024-01-08 14:01:24 +01:00
parent fe0097e5c6
commit 3365796c6c
1 changed files with 2 additions and 2 deletions

View File

@ -297,14 +297,14 @@ class AttachmentScan extends AppModel
$job = ClassRegistry::init('Job'); $job = ClassRegistry::init('Job');
$jobId = $job->createJob( $jobId = $job->createJob(
'SYSTEM', 'SYSTEM',
Job::WORKER_DEFAULT, Job::WORKER_PRIO,
'virus_scan', 'virus_scan',
($type === self::TYPE_ATTRIBUTE ? 'Attribute: ' : 'Shadow attribute: ') . $attribute['id'], ($type === self::TYPE_ATTRIBUTE ? 'Attribute: ' : 'Shadow attribute: ') . $attribute['id'],
'Scanning...' 'Scanning...'
); );
$this->getBackgroundJobsTool()->enqueue( $this->getBackgroundJobsTool()->enqueue(
BackgroundJobsTool::DEFAULT_QUEUE, BackgroundJobsTool::PRIO_QUEUE,
BackgroundJobsTool::CMD_ADMIN, BackgroundJobsTool::CMD_ADMIN,
[ [
'scanAttachment', 'scanAttachment',