mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
PHRAS-3525 Admin can change status to canceled for multiple job (#4055)
- Can change status to canceled for multiple running jobs - Add confirm when clear table - Workers, adding try catch on recordadapter for - Delete Worker - Webhook Worker - Subdefinition Worker
This commit is contained in:
@@ -89,7 +89,13 @@ class WriteMetadatasWorker implements WorkerInterface
|
||||
|
||||
// here we can work
|
||||
|
||||
$record = $databox->get_record($recordId);
|
||||
try {
|
||||
$record = $databox->get_record($recordId);
|
||||
} catch (\Exception $e) {
|
||||
$this->repoWorker->markFinished($workerRunningJobId, "error " . $e->getMessage());
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ($record->getMimeType() == 'image/svg+xml') {
|
||||
|
||||
|
Reference in New Issue
Block a user