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

@@ -34,6 +34,7 @@ class UserLifecycleService
$deleteDays = 0;
}
// Exclude admins with settings/tenant management rights — they must be deactivated manually.
$privilegedUserIds = $this->userReadRepository->listPrivilegedUserIdsByPermissionKeys([
PermissionService::SETTINGS_UPDATE,
PermissionService::TENANTS_UPDATE,
@@ -55,6 +56,7 @@ class UserLifecycleService
'duration_ms' => 0,
];
// Advisory lock prevents concurrent runs (e.g. cron and a manual trigger at the same time).
if (!$this->acquireLock()) {
$result['ok'] = false;
$result['locked'] = true;