barryvdh / laravel-async-queue

Laravel Async Queue Driver
286 stars 76 forks source link

Jobs freeze #81

Open SergeyAnf opened 6 years ago

SergeyAnf commented 6 years ago

Hello. Please forgive me my english. I am learning Laravel,php,js. Trying to use your async queue with laravel sheduler. (update DB every5minutes) It's work! but in 10% of cases, 1 of 2 jobs just freeze and don't concludes. In jobs-table that job change "attempts" = 0 from 1, freeze and don't update. Try to search in web, logs, use exec -same 10%. No idea what is it. Plz Help. Use WIndows

// Process:

// 1. App\Console\Kernel

    protected function schedule(Schedule $schedule)    {
            $schedule->call(function () {
            \App\Jobs\Job1::dispatch();
            \App\Jobs\Job2::dispatch(); }

            })->everyFiveMinutes();}

//2. App\Jobs\Job1+Job2

     public function handle()
        {
            //Job1
            DB_Test::create(['test_data' => 'job1']); 

            //Job2
            DB_Test::create(['test_data' => 'job2']);  
        }           
  1. //Run: php artisan schedule:run