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

Jobs freeze #81

Open
Open
@SergeyAnf

Description

@SergeyAnf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions