mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 07:52:34 +00:00
Add workers to servers (#547)
This commit is contained in:
@ -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.');
|
||||
}
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user