Closed a950216t closed 1 year ago
hi a950216t
Please send your task codes and "App\Scheduling\Kernel" file codes as well (all files in the "App\Scheduling" path)
App\Scheduling\Kernel:
<?php
namespace App\Scheduling;
use Fomo\Scheduling\Scheduler;
use App\Scheduling\Tasks\TestTask;
class Kernel
{
public function tasks(): void
{
(new Scheduler())->call(TestTask::class)->everyMinutes();
}
}
App\Scheduling\Tasks\TestTask:
<?php
namespace App\Scheduling\Tasks;
use Fomo\Database\DB;
class TestTask
{
public function handle(): void
{
DB::table('cache')->truncate();
}
}
The code works but throws deprecated errors.
Using scheduling:start in the latest version of swoole or openswoole I get the following error: