I have one function which take long time to execute so i want to run this function in background can it's possible?
I want to run this function on user click on button. and don't want to run any command from terminal.
Thanks
I have one function which take long time to execute so i want to run this function in background can it's possible?
I want to run this function on user click on button. and don't want to run any command from terminal.
Thanks
Copyright © 2021 Jogjafile Inc.
For implementing queue system these steps needs to be followed.
-- on button click route (/usertask/performAction) In your controller suppose (UserTaskController.php) 1- add namespace for your jobs.
now create a job file. (ProcessTask.php) inside your jobs folder. ProcessTask.php
/// now you can run your jobs in terminal ()
in your terminal(or you can place this in supervisor)
settings related to queue driver--