diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
index ac17f6640..5cc398aa5 100644
--- a/app/Console/Kernel.php
+++ b/app/Console/Kernel.php
@@ -70,13 +70,13 @@ class Kernel extends ConsoleKernel
$containerServers = $servers->where('settings.is_swarm_worker', false)->where('settings.is_build_server', false);
}
foreach ($containerServers as $server) {
- $schedule->job(new ContainerStatusJob($server))->everyMinute()->onOneServer();
+ $schedule->job(new ContainerStatusJob($server))->everyTwoMinutes()->onOneServer();
if ($server->isLogDrainEnabled()) {
- $schedule->job(new CheckLogDrainContainerJob($server))->everyMinute()->onOneServer();
+ $schedule->job(new CheckLogDrainContainerJob($server))->everyTwoMinutes()->onOneServer();
}
}
foreach ($servers as $server) {
- $schedule->job(new ServerStatusJob($server))->everyMinute()->onOneServer();
+ $schedule->job(new ServerStatusJob($server))->everyTwoMinutes()->onOneServer();
}
// Delayed Jobs
// foreach ($containerServers as $server) {
diff --git a/app/Livewire/RealtimeConnection.php b/app/Livewire/RealtimeConnection.php
deleted file mode 100644
index 89b680277..000000000
--- a/app/Livewire/RealtimeConnection.php
+++ /dev/null
@@ -1,25 +0,0 @@
-user()->update(['is_notification_realtime_enabled' => false]);
- $this->showNotification = false;
- }
- public function mount() {
- $this->isNotificationEnabled = auth()->user()->is_notification_realtime_enabled;
- $this->checkConnection = auth()->user()->id === 0;
- }
-}
diff --git a/database/migrations/2024_03_26_122110_remove_realtime_notifications.php b/database/migrations/2024_03_26_122110_remove_realtime_notifications.php
new file mode 100644
index 000000000..6d5d0e041
--- /dev/null
+++ b/database/migrations/2024_03_26_122110_remove_realtime_notifications.php
@@ -0,0 +1,28 @@
+dropColumn('is_notification_realtime_enabled');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::table('users', function (Blueprint $table) {
+ $table->boolean('is_notification_realtime_enabled')->default(true);
+ });
+ }
+};
diff --git a/resources/views/components/popup.blade.php b/resources/views/components/popup.blade.php
index a184d80b0..8061c29bd 100644
--- a/resources/views/components/popup.blade.php
+++ b/resources/views/components/popup.blade.php
@@ -6,7 +6,8 @@
x-transition:enter-start="translate-y-full" x-transition:enter-end="translate-y-0"
x-transition:leave="transition ease-in duration-300" x-transition:leave-start="translate-y-0"
x-transition:leave-end="translate-y-full" x-init="setTimeout(() => { bannerVisible = true }, bannerVisibleAfter);"
- class="fixed bottom-0 right-0 w-full h-auto duration-300 ease-out sm:px-5 sm:pb-5 sm:w-[26rem] lg:w-full z-[999]" x-cloak>
+ class="fixed bottom-0 right-0 w-full h-auto duration-300 ease-out sm:px-5 sm:pb-5 sm:w-[26rem] lg:w-full z-[999]"
+ x-cloak>
attributes->whereStartsWith('@click')->first()) @click="bannerVisible=false;{{ $buttonText->attributes->get('@click') }}"
@else
@click="bannerVisible=false;" @endif
- class="inline-flex items-center justify-center flex-shrink-0 w-1/2 px-4 py-2 text-sm font-medium tracking-wide transition-colors duration-200 bg-white rounded-md dark:bg-coolgray-200 lg:w-auto dark:text-neutral-200 dark:hover:bg-coolgray-300 focus:shadow-outline focus:outline-none">
+ class="inline-flex items-center justify-center flex-shrink-0 w-1/2 px-4 py-2 text-sm font-medium tracking-wide transition-colors duration-200 rounded-md bg-neutral-100 hover:bg-neutral-200 dark:bg-coolgray-200 lg:w-auto dark:text-neutral-200 dark:hover:bg-coolgray-300 focus:shadow-outline focus:outline-none">
{{ $buttonText }}
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index e502e9e6e..744f33739 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -4,9 +4,6 @@
@if (isSubscribed() || !isCloud())
@endif
- @auth
-
- @endauth
@auth
diff --git a/resources/views/livewire/layout-popups.blade.php b/resources/views/livewire/layout-popups.blade.php
index 43de765a9..94be1fbb2 100644
--- a/resources/views/livewire/layout-popups.blade.php
+++ b/resources/views/livewire/layout-popups.blade.php
@@ -1,13 +1,52 @@
+ @auth
+
+
+
+ WARNING: Realtime Error?!
+
+
+ Coolify could not connect to its real-time service.
This will cause unusual problems on the UI
+ if
+ not fixed!
Please check the
+ related documentation or get
+ help on Discord.
+
+
+ Acknowledge & Disable This Popup
+
+
+
+ @endauth
@@ -20,7 +59,8 @@
Please
consider donating on GitHub or GitHub or OpenCollective.
It enables us to keep creating features without paywalls, ensuring our work remains free and
open.
@@ -35,7 +75,8 @@
WARNING: The number of active servers exceeds the limit
covered by your payment. If not resolved, some of your servers
will
be deactivated. Visit
/subscription to update your subscription or remove some servers.
+ class="underline dark:text-white">/subscription to update your subscription or remove some
+ servers.
@endif
@@ -70,8 +111,13 @@
function disableSponsorship() {
localStorage.setItem('popupSponsorship', false);
}
+
function disableNotification() {
localStorage.setItem('popupNotification', false);
}
+
+ function disableRealtime() {
+ localStorage.setItem('popupRealtime', 'disabled');
+ }
diff --git a/resources/views/livewire/realtime-connection.blade.php b/resources/views/livewire/realtime-connection.blade.php
deleted file mode 100644
index 5a9d14a9f..000000000
--- a/resources/views/livewire/realtime-connection.blade.php
+++ /dev/null
@@ -1,48 +0,0 @@
-
- @if ($checkConnection)
- @script
-
- @endscript
-
-
-
WARNING: Coolify could not connect to the new
- realtime service introduced in beta.154.
This will cause unusual problems on the UI if not
- fixed!
Please check the
- related documentation or get
- help on Discord.
-
Acknowledge the problem and disable this
- popup
-
-
- @endif
-