mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 20:14:45 +00:00
chore(ssh): remove stale mux cleanup job
Drop the scheduled stale multiplexed connection cleanup job, its SSH mux health/orphan config, and the tests that covered that cleanup path.
This commit is contained in:
1 parent
b5be9fe9e8
commit
43884823c6
5 files changed
-501
No files matched your search
@@ -1,10 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Jobs\CleanupStaleMultiplexedConnections;
|
||||
use App\Models\InstanceSettings;
|
||||
use Illuminate\Console\Scheduling\Schedule;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\Queue;
|
||||
|
||||
uses(RefreshDatabase::class);
|
||||
|
||||
@@ -23,23 +21,6 @@ it('schedules RegenerateSslCertJob with onOneServer to prevent multi-server doub
|
||||
expect($event->onOneServer)->toBeTrue();
|
||||
});
|
||||
|
||||
it('schedules CleanupStaleMultiplexedConnections on the crons queue', function () {
|
||||
config(['constants.coolify.self_hosted' => false]);
|
||||
Queue::fake();
|
||||
|
||||
$schedule = app(Schedule::class);
|
||||
|
||||
$event = collect($schedule->events())->first(
|
||||
fn ($e) => str_contains((string) $e->description, CleanupStaleMultiplexedConnections::class)
|
||||
);
|
||||
|
||||
expect($event)->not->toBeNull();
|
||||
|
||||
$event->run(app());
|
||||
|
||||
Queue::assertPushedOn('crons', CleanupStaleMultiplexedConnections::class);
|
||||
});
|
||||
|
||||
it('schedules every production job with onOneServer', function () {
|
||||
$schedule = app(Schedule::class);
|
||||
|
||||
|
||||
Reference in new issue
Block a user