|
@@ -80,9 +80,9 @@ |
|
|
block discarded – undo |
|
80
|
80
|
$handler = $this->handlerFactory->create($execution->getHandlerClass()); |
|
81
|
81
|
|
|
82
|
82
|
try { |
|
83
|
|
- $this->eventDispatcher->dispatch(new TaskEvent($execution->getTask()),Events::TASK_BEFORE); |
|
|
83
|
+ $this->eventDispatcher->dispatch(new TaskEvent($execution->getTask()), Events::TASK_BEFORE); |
|
84
|
84
|
$result = $handler->handle($execution->getWorkload()); |
|
85
|
|
- $this->eventDispatcher->dispatch(new TaskEvent($execution),Events::TASK_AFTER); |
|
|
85
|
+ $this->eventDispatcher->dispatch(new TaskEvent($execution), Events::TASK_AFTER); |
|
86
|
86
|
} catch (\Exception $exception) { |
|
87
|
87
|
if ($exception instanceof FailedException) { |
|
88
|
88
|
$errorOutput->writeln(FailedException::class); |
Please login to merge, or discard this patch.