reformat: fix codestyle
This commit is contained in:
@@ -37,4 +37,3 @@ class ScheduleJobRegistry
|
|||||||
return $this->jobs;
|
return $this->jobs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,4 +41,3 @@ class SchedulerResult
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ class SchedulerService
|
|||||||
|
|
||||||
$this->logger->info("Job executed: {$name}", ['duration' => $duration]);
|
$this->logger->info("Job executed: {$name}", ['duration' => $duration]);
|
||||||
$result->addExecuted($name, $duration);
|
$result->addExecuted($name, $duration);
|
||||||
|
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
$this->updateLastFailure($id, $e->getMessage());
|
$this->updateLastFailure($id, $e->getMessage());
|
||||||
$this->logger->error("Job failed: {$name}", ['exception' => $e]);
|
$this->logger->error("Job failed: {$name}", ['exception' => $e]);
|
||||||
@@ -116,7 +115,6 @@ class SchedulerService
|
|||||||
} finally {
|
} finally {
|
||||||
$this->unlockJob($id);
|
$this->unlockJob($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
$this->logger->error("Error processing job {$name}: " . $e->getMessage());
|
$this->logger->error("Error processing job {$name}: " . $e->getMessage());
|
||||||
$result->addFailed($name, 'Processing error: ' . $e->getMessage());
|
$result->addFailed($name, 'Processing error: ' . $e->getMessage());
|
||||||
|
|||||||
@@ -6,4 +6,3 @@ interface TaskInterface
|
|||||||
{
|
{
|
||||||
public function execute(): void;
|
public function execute(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ parameters:
|
|||||||
- src
|
- src
|
||||||
- bastion
|
- bastion
|
||||||
- framework
|
- framework
|
||||||
|
- console
|
||||||
|
|
||||||
scanDirectories:
|
scanDirectories:
|
||||||
- stubs
|
- stubs
|
||||||
|
|||||||
Reference in New Issue
Block a user