CRON job
Last updated
Last updated
Login to your cpanel and find Cron jobs.
Select the Cron jobs. Then you will be shown a page to enter your cron job details.
Select every one minute from the common settings option. Then the following code in the command input filed.
Please replace PATH_TO_YOUR_PROJECT, with path to your project on the your server.
You need to also set a queue work command on your cron job.
Using the step stated above, Select every two minutes from the common settings option. Then use the following code in the command input filed.
Please replace PATH_TO_YOUR_PROJECT, with path to your project on the your server.
Then Add new cron job, to save the job.
Here is a link to the official documentation from cpanel on how to setup Cron job. https://blog.cpanel.com/how-to-configure-a-cron-job/
Its very likely that if you are using a shared hosting to setup your cron job, you might be limit to only 5mintues, which means that it will take at least 5mins before orders are pushed out to the drivers. For this reason we provided a url that can be use to trigger the cron job remotely using external systems like https://cron-job.org/en/.