问题描述
我最初计划运行几个作业,但后来将它们从内核中删除。然而,它们仍在运行,并且没有出现在预定作业列表中!我知道它们正在运行,因为它们失败了,并且在它作为 Log::info 运行之前,我将作业的名称记录在我的日志中。这让我发疯。我正在使用 Laravel Vapor。我错过了什么?
正在运行的作业称为 AutoSendFaxWithEncounter 和 AutoSendFaxWithReferral running jobs but not in scheduler
内核.PHP
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use DB;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
Commands\ProcessFiles::class,Commands\ImportCustomerFills::class,Commands\ImportCustomerEncounters::class,Commands\ImportCustomerReferrals::class,Commands\IndexFills::class,Commands\IndexEncounters::class,Commands\IndexReferrals::class,Commands\CreateS3Directories::class,Commands\FilterFills::class,Commands\InsertPatients::class,Commands\InsertPharmacies::class,Commands\InsertProviders::class,Commands\InsertProducts::class,];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->job(new \App\Jobs\IncomingFaxage(3))
->everyFiveMinutes()->environments(['production','local','staging']);
$schedule->job(new \App\Jobs\UpdateFaxageStatus(3))
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\StoreInboundS3())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\StoreOutboundS3())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\InsertProducts())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\InsertPatients())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\InsertProviders())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\InsertPharmacies())
->everyFiveMinutes()->environments(['production','staging']);
/*
$schedule->job(new \App\Jobs\InsertClaims())
->everyFiveMinutes()->environments(['production','staging']);
*/
$schedule->job(new \App\Jobs\InsertEncounterLocations())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\IndexFills())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\IndexEncounters())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\IndexReferrals())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\IndexEncounterLocations())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\FilterFills())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\NpiRegistry())
->everyFiveMinutes()->environments(['production','staging']);
$schedule->job(new \App\Jobs\RunImports())
->everyFiveMinutes()->environments(['production','staging']);
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.PHP');
}
}
artisan schedule:list
+---------+-------------+-----------------------------------+----------------------------+
| Command | Interval | Description | Next Due |
+---------+-------------+-----------------------------------+----------------------------+
| | */5 * * * * | App\Jobs\IncomingFaxage | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\UpdateFaxageStatus | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\StoreInboundS3 | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\StoreOutboundS3 | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\InsertProducts | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\InsertPatients | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\InsertProviders | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\InsertPharmacies | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\InsertEncounterLocations | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\IndexFills | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\IndexEncounters | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\IndexReferrals | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\IndexEncounterLocations | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\FilterFills | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\NpiRegistry | 2021-07-28 15:35:00 +00:00 |
| | */5 * * * * | App\Jobs\RunImports | 2021-07-28 15:35:00 +00:00 |
+---------+-------------+-----------------------------------+----------------------------+
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)