2.11.5. Cron limitations

The main restrictions are shown in the table.

Regular hosting Business hosting
Runtime limits 1 hour 4 hours
Minimum start interval 1 minute 1 minute

If the launched process does not have time to complete within the allotted time, it will be forcibly terminated by the system. Moreover, in cron log next to such a process, the status will be displayed "Killed".

If the execution time is insufficient, the following options are worth considering:

  • If the script processes a large amount of any data, you can split it into parts so that at each launch the script does not process all the data at once, but only the next part, and fit into the allotted time.
  • Change the logic of work and optimize the code of the running script so that it has time to perform the necessary actions in the allotted time.
  • If you are using a regular hosting plan, you can switch to a tariff businesshostingwhere the execution time limit is significantly higher.

It is not possible to run tasks more than once per minute using cron. If the need arose, you should consider running the script in the background and set interval, using directly the logic of the script itself. Please note that running cron tasks too often can lead to high consumption server resources and errors in the operation of the sites of the hosting account due to their lack.