feat: limit storage check emails

feat: sentinel should send storage usage
This commit is contained in:
Andras Bacsai committed 2024-10-22 14:01:36 +02:00
1 parent 0a26598093
commit ac768e5313
14 files changed
+111 -49

No files matched your search

+4
View File
@@ -101,6 +101,10 @@ class PushServerUpdateJob implements ShouldQueue
$this->server->sentinelHeartbeat();
$this->containers = collect(data_get($data, 'containers'));
$filesystemUsageRoot = data_get($data, 'filesystem_usage_root.used_percentage');
ServerStorageCheckJob::dispatch($this->server, $filesystemUsageRoot);
if ($this->containers->isEmpty()) {
return;
}