mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +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:
@@ -114,7 +114,15 @@ class WebhookWorker implements WorkerInterface
|
||||
|
||||
$this->messagePublisher->pushLog(sprintf('Processing event "%s" with id %d', $webhookevent->getName(), $webhookevent->getId()));
|
||||
// send requests
|
||||
$this->deliverEvent($httpClient, $thirdPartyApplications, $webhookevent, $payload);
|
||||
try {
|
||||
$this->deliverEvent($httpClient, $thirdPartyApplications, $webhookevent, $payload);
|
||||
} catch (\Exception $e) {
|
||||
if ($workerRunningJob != null) {
|
||||
$workerRunningJob->setInfo('error ' . $e->getMessage());
|
||||
$em->persist($workerRunningJob);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ($workerRunningJob != null) {
|
||||
|
Reference in New Issue
Block a user