Bobcares

How to add cron job on OVH

by | Feb 2, 2023

Get ready to learn how to add cron job on OVH. Our OVH Support team is here to lend a hand with your queries and issues.

How to add a cron job on OVH

Cron jobs enable us to run specific tasks at scheduled times or intervals. In fact, we can find information about these tasks and schedules in the cron section of .platform.app.yaml.

According to our experts, a random offset can be applied to minimize cron tasks running simultaneously. This value is the cron frequency or a random number of seconds up to five minutes, whichever is smaller. In other words, the cron task will continue to run at the frequency specified but will be offset.

How to add a cron job on OVH

Additionally, a single application container can contain any number of cron tasks, but only one may be running at a specific time. For instance, if a cron task starts running when another cron task is still running it will pause and then start running normally after the first cron task is completed. Our experts recommend setting cron jobs to run on prime number minutes to avoid this scenario.

We can easily add a cron job on OVH, by accessing the cron manager with the Web Hosting Control Panel.

  1. First, we have to log in to the OVH Control Panel.
  2. Then, we will choose the service we want to add the cron job to.
  3. After that, we have to head to the Web Hosting section and click Cron jobs.
  4. Next, we have to enter the command we want to run in the Command field in the Add a new cron job section.
  5. Then, enter the frequency at which we want to run the command in the Frequency field.
  6. Finally, we have to click Add this cron job to save the new cron job.

After adding the cron task, it will run according to the schedule we have set. Moreover, we can check the cron job log under the logs tab.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

To conclude, our Support Engineers demonstrated how to add a cron job on OVH.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.