Add workers to servers (#547)

This commit is contained in:
Saeed Vaziry
2025-03-16 14:09:15 +01:00
committed by GitHub
parent 48ae561ea4
commit 72352aad8d
42 changed files with 603 additions and 454 deletions

View File

@ -27,9 +27,9 @@ public function deletionRules(): array
return [
'service' => [
function (string $attribute, mixed $value, Closure $fail): void {
$hasQueue = $this->service->server->queues()->exists();
if ($hasQueue) {
$fail('You have queue(s) on the server.');
$hasWorker = $this->service->server->workers()->exists();
if ($hasWorker) {
$fail('You have worker(s) on the server.');
}
},
],