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:
parent
45466b5069
commit
1d0d6b4a79
6 changed files with 13 additions and 10 deletions
|
|
@ -47,9 +47,10 @@ protected function schedule(Schedule $schedule): void
|
|||
->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 @@
|
|||
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 @@
|
|||
);
|
||||
|
||||
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 @@
|
|||
->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,7 +1,7 @@
|
|||
{
|
||||
"coolify": {
|
||||
"v4": {
|
||||
"version": "4.3.15"
|
||||
"version": "4.3.16"
|
||||
},
|
||||
"nightly": {
|
||||
"version": "4.4-rc.1"
|
||||
|
|
|
|||
Loading…
Reference in a new issue