mirror of https://github.com/MISP/MISP
chg: [internal] Move attachment scanning to prio queue
parent
fe0097e5c6
commit
3365796c6c
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue