I created a laravel job to be executed on specific date and time, lets say for tomorrow, but i want to have a manual button that can override the time and execute that queued job before its set execution time,
so that if i click a button ajax call is created to server with job ID sent to it, and it executes that job today instead of tomorrow.
For failed jobs we have option to manually retry that failed job. We can use following command for that.
php artisan queue:retry JOBIDHERE
but i am not sure what to use for executing a already queued job, that is queued to execute for later.
I can get the Job ID. Its just is it possible to execute the Laravel Job before its execution set time.
I searched google but did not found anyone with such problem and solution.
I am using Laravel Ver 5.8. Using Mysql 5.7
from Laravel Queued Job, Execute it before its execution time
No comments:
Post a Comment