> For the complete documentation index, see [llms.txt](https://edentech.gitbook.io/glover/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edentech.gitbook.io/glover/backend/cron-job.md).

# CRON job

Login to your **cpanel** and find **Cron jobs.**

![](/files/-M_j_kgiFSqeNcvwiwiT)

Select the **Cron jobs.** Then you will be shown a page to enter your cron job details.

![](/files/-M_jaRCvbuVi3PDorMpK)

Select **every one minute** from the common settings option. Then the following code in the **command** input filed.

```bash
php /PATH_TO_YOUR_PROJECT/artisan schedule:run >> /dev/null 2>&1
```

Please replace **PATH\_TO\_YOUR\_PROJECT,** with path to your project on the your server.

### QUEUED JOBS

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.

```
php /PATH_TO_YOUR_PROJECT/artisan queue:work --max-time=120
```

Please replace **PATH\_TO\_YOUR\_PROJECT,** with path to your project on the your server.

Then **Add new cron job**, to save the job.

![](/files/-M_jd-Zjq7MwtM6R6Uac)

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/>

## **SETUP REMOTE 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/>.

### **How to get your cron job url**

![](/files/-Mi7sLBfE64KD7ML1lGJ)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://edentech.gitbook.io/glover/backend/cron-job.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
