Merge lp:~free.ekanayaka/landscape-charm/dont-stop-cron into lp:~landscape/landscape-charm/trunk
Status: | Merged |
---|---|
Approved by: | Free Ekanayaka |
Approved revision: | 293 |
Merged at revision: | 293 |
Proposed branch: | lp:~free.ekanayaka/landscape-charm/dont-stop-cron |
Merge into: | lp:~landscape/landscape-charm/trunk |
Diff against target: |
198 lines (+42/-51) 8 files modified
lib/pause.py (+0/-1) lib/resume.py (+0/-1) lib/tests/test_pause.py (+1/-3) lib/tests/test_resume.py (+1/-3) tests/basic/test_actions.py (+2/-5) tests/basic/test_service.py (+2/-20) tests/helpers.py (+17/-17) tests/layers.py (+19/-1) |
To merge this branch: | bzr merge lp:~free.ekanayaka/landscape-charm/dont-stop-cron |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Björn Tillenius (community) | Approve | ||
Geoff Teale (community) | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Review via email: mp+260553@code.launchpad.net |
Commit message
Don't stop/start the cron deamon when pausing/resuming a unit. Also, wait for any running cron job to finish before running cron tests, since otherwise we could get spurious failures due to busy db locks.
Starting from r8826 the 'lsctl stop' command will also set the maintenance flag, so cron scripts won't be triggered when the unit is paused.
Description of the change
Don't stop/start the cron deamon when pausing/resuming a unit. Also, wait for any running cron job to finish before running cron tests, since otherwise we could get spurious failures due to busy db locks.
Starting from r8826 the 'lsctl stop' command will also set the maintenance flag, so cron scripts won't be triggered when the unit is paused.
The bug says that we shouldn't stop the cron services and instead prevent them from running. This branch doesn't stop the cron service. What about preventing them from running?