mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +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:
@@ -65,8 +65,14 @@ class SubdefCreationWorker implements WorkerInterface
|
||||
$databoxId = $payload['databoxId'];
|
||||
$subdefName = $payload['subdefName'];
|
||||
|
||||
$databox = $this->findDataboxById($databoxId);
|
||||
$record = $databox->get_record($recordId);
|
||||
try {
|
||||
$databox = $this->findDataboxById($databoxId);
|
||||
$record = $databox->get_record($recordId);
|
||||
} catch (\Exception $e) {
|
||||
$this->logger->error(sprintf("%s (%s) : record not found %s", __FILE__, __LINE__, $e->getMessage()));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ($record->isStory()) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user