简体   繁体   中英

Execute Long running php scripts via cron jobs

I have a php script that updates a database. It takes round 5 minutes to complete. I want to set it to run automatically via cron job on cpanel but it don't execute via cron job.

Is there any time execution limit on cron jobs or is there any other effective way to automate this process on server?

set_time_limit() might help you

documentation

you can use supervisor to keep command line tasks running

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM