Submitted a PR to make cronjob timeout customizable- https://github.com/openshift/origin-server/pull/6089
Bilhar, how do you want to handle the docs update for this?
Sorry, I put this to ON_QA after tagging the PR merge, but it looks like the merge queue is broken so it never merged.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/d5698ee4b33139944958b6662cf1d64a7f21d0c2 Bug 1197873 Bugzilla Link - https://bugzilla.redhat.com/show_bug.cgi?id=1197873 Using this fix a user a can have a cronjob timeout limit customizable
Wait for the new puddle.
Check on puddle [2.2.z/2015-03-16.1] 1.create an app with cron cartridge #rhc app create xiaom1 php-5.4 cron 2. add cron job # vim .openshift/cron/minutely/test.sh sleep 15 #chmod +x test.sh 3.deploy the app #git commit -amx && git push 4.check the log No warning message is given out 5.create /etc/openshift/cron/limits file on the node # vim /etc/openshift/cron/limits MAX_RUN_TIME=10s 6. check the log > tailf app-root/logs/cron_minutely.log __________________________________________________________________________ /var/lib/openshift/xiaom-xiaom1-1/cron/bin/cron_runjobs.sh: line 114: 13377 Killed $executor "$SCRIPTS_DIR" Warning: minutely cron run terminated as it exceeded max run time __________________________________________________________________________ The configuration file take effect
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0779.html