Maintain plugin state

This commit is contained in:
xiaomlove
2024-11-17 02:44:41 +08:00
parent 631f703055
commit c2e70c9569
5 changed files with 60 additions and 2 deletions

View File

@@ -101,8 +101,7 @@ class Test extends Command
*/
public function handle()
{
$tool = new TrackerRepository();
$result = $tool->checkStatus();
$result = \Nexus\Plugin\Plugin::listEnabled();
dd($result);
}

View File

@@ -4,6 +4,8 @@ namespace App\Console;
use App\Jobs\CheckCleanup;
use App\Jobs\CheckQueueFailedJobs;
use App\Jobs\MaintainPluginState;
use App\Jobs\ManagePlugin;
use App\Utils\ThirdPartyJob;
use Carbon\Carbon;
use Illuminate\Console\Scheduling\Event;
@@ -43,6 +45,7 @@ class Kernel extends ConsoleKernel
$schedule->command('torrent:load_pieces_hash')->dailyAt("01:00")->withoutOverlapping();
$schedule->job(new CheckQueueFailedJobs())->everySixHours()->withoutOverlapping();
$schedule->job(new ThirdPartyJob())->everyMinute()->withoutOverlapping();
$schedule->job(new MaintainPluginState())->everyMinute()->withoutOverlapping();
$this->registerScheduleCleanup($schedule);
}