agent foundation

This commit is contained in:
2026-03-06 00:44:52 +01:00
parent 9819cba733
commit 9a08f96c11
199 changed files with 8522 additions and 1880 deletions

View File

@@ -160,6 +160,7 @@ class SchedulerRunService
return $run;
}
// markRunning uses a conditional update — failure means another process already claimed this job.
$markedRunning = $this->scheduledJobRepository->markRunning($jobId, $startedAtUtc);
if (!$markedRunning) {
$this->insertRunLog([
@@ -268,6 +269,7 @@ class SchedulerRunService
return $run;
}
// Fail-open: a logging failure must not kill the job run that already completed.
private function insertRunLog(array $data): void
{
try {