Bug 1313597

Summary: Cron jobs are not run anymore after a day or so.
Product: OpenShift Online Reporter: Michael <michael.palumbo87>
Component: ImageAssignee: Vu Dinh <vdinh>
Status: CLOSED NOTABUG QA Contact: Wenjing Zheng <wzheng>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.xCC: aos-bugs, jokerman, mmccomas, vdinh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-02 19:51:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michael 2016-03-02 01:28:20 UTC
Description of problem:
Cron jobs are not run anymore after a day or so.

Version-Release number of selected component (if applicable):
cron-1.4
python-3.3

How reproducible:
I tried to create new python-3.3 apps from scratch several times, installing/uninstalling the cron component several times.
It does not change anything, it works for a day or so and then the jobs are not run anymore when looking at the logs:
`cat ~/app-root/logs/cron_hourly.log  | grep 'START hourly cron run'`

I don't see any errors in the logs, just that the jobs are not run anymore.

Actual results:
The hourly cron jobs are not run anymore after a day or so.

Expected results:
The hourly cron jobs are supposed to be run every hour.

Comment 1 Michael 2016-03-02 14:02:01 UTC
I just saw this comment when I ssh'ed into the app:

    ***  This gear has been temporarily unidled. To keep it active, access
    ***  your app @ http://<appname>.rhcloud.com/

I'm not sure if it is why the cron jobs were not running anymore.
Can that be the reason? Idling stops the cron jobs as well?

Comment 2 Vu Dinh 2016-03-02 19:51:37 UTC
Hi Michael,

If your app is idled, the cron job will be idled as well hence it will not run. Since you are using free tier of OpenShift Online, your app will be automatically idled if there is no access to it in 24 hour period.

Thanks,
Vu