Red Hat Bugzilla – Bug 1255943
Jenkins periodical jobs don't execute
Last modified: 2015-10-13 11:49:12 EDT
Description of problem:
I have a gear running Jenkins in OpenShift I setup a job and enabled periodic execution to "@weekly". It has been almost two weeks and the job did not execute.
I think when not it use, the gear goes into a "stand-by" mode. I access the Jenkins UI daily and the first access every day returns a connection failed message (like the server is down). Upon refresh everything works fine. I think the gear goes into "stand-by" and then recovers when accessed.
Version-Release number of selected component (if applicable):
Jenkins ver. 1.609.1
This is a result of gear idling: https://developers.openshift.com/en/managing-idling.html
After 48 hours with no external requests, OpenShift "idles" your gears, essentially shutting it down until it's woken up again by an external request (i.e. a HTTP GET). This affects Cron carts as well, so weekly jobs run from an app that sees traffic less than once every 48 hours will tend not to run.
This can be avoided by making sure your app is browsed at least once every two days, or upgrading to a premium account: http://stackoverflow.com/questions/25379410/ping-service-to-stop-openshift-application-from-idle