How do I increase timeout for a cronjob/crontab?
Posted
by Mohit Ranka
on Stack Overflow
See other posts from Stack Overflow
or by Mohit Ranka
Published on 2009-03-01T10:10:44Z
Indexed on
2010/05/24
3:41 UTC
Read the original article
Hit count: 564
I have written a script that gets data from solr for which date is within the specified period, and I run the script using as a daily cron.
The problem is the cronjob does not complete the task. If I manually run the script (for the same time period), it works well. If I reduce the specified time period, the script runs from the cron as well. So my guess is cronjob is timing out while running the script is there is much data to process.
How do I increase the timeout for cronjob?
PS - 1. The script I am running in cronjob is a bash script which runs a python script.
© Stack Overflow or respective owner