mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-24 23:40:16 -05:00
fix(scheduler): run stuck resource cleanup in background at 03:17
Bump the Coolify release version to 4.3.16 and update schedule coverage.
This commit is contained in:
@@ -47,9 +47,10 @@ class Kernel extends ConsoleKernel
|
||||
->when(fn () => config('constants.ssh.mux_enabled') && ! config('constants.coolify.is_windows_docker_desktop'));
|
||||
$this->scheduleInstance->command('cleanup:redis --clear-locks')->daily();
|
||||
$this->scheduleInstance->command('cleanup:stucked-resources')
|
||||
->daily()
|
||||
->dailyAt('03:17')
|
||||
->onOneServer()
|
||||
->withoutOverlapping(60);
|
||||
->withoutOverlapping(60)
|
||||
->runInBackground();
|
||||
$this->scheduleInstance->command('sanctum:prune-expired --hours=1')->hourly()->onOneServer();
|
||||
$this->scheduleInstance->job(new ApiTokenExpirationWarningJob)->hourly()->onOneServer();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
return [
|
||||
'coolify' => [
|
||||
'version' => env('COOLIFY_VERSION') ?: '4.3.15',
|
||||
'version' => env('COOLIFY_VERSION') ?: '4.3.16',
|
||||
'helper_version' => '1.0.16',
|
||||
'realtime_version' => '1.0.18',
|
||||
'railpack_version' => '0.23.0',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"coolify": {
|
||||
"v4": {
|
||||
"version": "4.3.15"
|
||||
"version": "4.3.16"
|
||||
},
|
||||
"nightly": {
|
||||
"version": "4.4-rc.1"
|
||||
|
||||
@@ -59,7 +59,7 @@ it('does not schedule Stripe subscription reconciliation automatically', functio
|
||||
expect($event)->toBeNull();
|
||||
});
|
||||
|
||||
it('schedules stuck resource cleanup once per day on one server', function () {
|
||||
it('schedules stuck resource cleanup in the background once per day', function () {
|
||||
$schedule = app(Schedule::class);
|
||||
|
||||
$event = collect($schedule->events())->first(
|
||||
@@ -67,6 +67,8 @@ it('schedules stuck resource cleanup once per day on one server', function () {
|
||||
);
|
||||
|
||||
expect($event)->not->toBeNull()
|
||||
->and($event->expression)->toBe('0 0 * * *')
|
||||
->and($event->onOneServer)->toBeTrue();
|
||||
->and($event->expression)->toBe('17 3 * * *')
|
||||
->and($event->onOneServer)->toBeTrue()
|
||||
->and($event->withoutOverlapping)->toBeTrue()
|
||||
->and($event->runInBackground)->toBeTrue();
|
||||
});
|
||||
|
||||
@@ -23,8 +23,8 @@ it('publishes v4 branch builds under the commit sha with a traceable internal ve
|
||||
->toContain('ARG COOLIFY_VERSION')
|
||||
->toContain('ENV COOLIFY_VERSION=${COOLIFY_VERSION}')
|
||||
->and($constants)
|
||||
->toContain("'version' => env('COOLIFY_VERSION') ?: '4.3.15'")
|
||||
->and($versions['coolify']['v4']['version'])->toBe('4.3.15')
|
||||
->toContain("'version' => env('COOLIFY_VERSION') ?: '4.3.16'")
|
||||
->and($versions['coolify']['v4']['version'])->toBe('4.3.16')
|
||||
->and($versions['coolify']['nightly']['version'])->toBe('4.4-rc.1')
|
||||
->and($nightlyVersions)->toBe($versions);
|
||||
});
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"coolify": {
|
||||
"v4": {
|
||||
"version": "4.3.15"
|
||||
"version": "4.3.16"
|
||||
},
|
||||
"nightly": {
|
||||
"version": "4.4-rc.1"
|
||||
|
||||
Reference in New Issue
Block a user