Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Jobs freeze #81

Open
SergeyAnf opened this issue Oct 2, 2018 · 0 comments
Open

Jobs freeze #81

SergeyAnf opened this issue Oct 2, 2018 · 0 comments

Comments

@SergeyAnf
Copy link

SergeyAnf commented Oct 2, 2018

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant