Latest

Thursday, July 6, 2017

Laravel Queue start a second job after first job

Asked by: Yur Gasparyan


In my Laravel 5.1 project I want to start my second job when first will finished.

Here is my logic.

\Queue::push(new MyJob())

and when this job finish I want to start this job

\Queue::push(new ClearJob())

How can i realize this?



Source

No comments:

Post a Comment

Adbox