0

最初にいくつかのジョブを実行するようにスケジュールしましたが、カーネルからそれらを削除しました。それでも、それらはまだ実行中であり、スケジュールされたジョブのリストには表示されません! 失敗したため実行されていることはわかっており、Log::info として実行する前にログにジョブの名前を記録します。これは私を夢中にさせています。Laravel Vapor を使用しています。私は何が欠けていますか?

実行中のジョブは AutoSendFaxWithEncounter および AutoSendFaxWithReferral 実行ジョブと呼ばれますが、スケジューラーにはありません

カーネル.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','local','staging']);
        
            $schedule->job(new \App\Jobs\StoreInboundS3())
            ->everyFiveMinutes()->environments(['production','local','staging']);
        
            $schedule->job(new \App\Jobs\StoreOutboundS3())
            ->everyFiveMinutes()->environments(['production','local','staging']);
        
            $schedule->job(new \App\Jobs\InsertProducts())
            ->everyFiveMinutes()->environments(['production','local','staging']);
        
            $schedule->job(new \App\Jobs\InsertPatients())
            ->everyFiveMinutes()->environments(['production','local','staging']);
        
            $schedule->job(new \App\Jobs\InsertProviders())
            ->everyFiveMinutes()->environments(['production','local','staging']);
            
            $schedule->job(new \App\Jobs\InsertPharmacies())
            ->everyFiveMinutes()->environments(['production','local','staging']);

            /*
            $schedule->job(new \App\Jobs\InsertClaims())
            ->everyFiveMinutes()->environments(['production','local','staging']);
            */
            
            $schedule->job(new \App\Jobs\InsertEncounterLocations())
            ->everyFiveMinutes()->environments(['production','local','staging']);

            $schedule->job(new \App\Jobs\IndexFills())
            ->everyFiveMinutes()->environments(['production','local','staging']);
            
            $schedule->job(new \App\Jobs\IndexEncounters())
            ->everyFiveMinutes()->environments(['production','local','staging']);

            $schedule->job(new \App\Jobs\IndexReferrals())
            ->everyFiveMinutes()->environments(['production','local','staging']);

            $schedule->job(new \App\Jobs\IndexEncounterLocations())
            ->everyFiveMinutes()->environments(['production','local','staging']);
            
            $schedule->job(new \App\Jobs\FilterFills())
            ->everyFiveMinutes()->environments(['production','local','staging']);

            $schedule->job(new \App\Jobs\NpiRegistry())
            ->everyFiveMinutes()->environments(['production','local','staging']);

            $schedule->job(new \App\Jobs\RunImports())
            ->everyFiveMinutes()->environments(['production','local','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 |
+---------+-------------+-----------------------------------+----------------------------+
4

2 に答える 2