Merge lp:~stub/launchpad/cronscripts into lp:launchpad
Proposed by
Stuart Bishop
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Robert Collins | ||||||||||||
Approved revision: | no longer in the source branch. | ||||||||||||
Merged at revision: | 11567 | ||||||||||||
Proposed branch: | lp:~stub/launchpad/cronscripts | ||||||||||||
Merge into: | lp:launchpad | ||||||||||||
Diff against target: |
195 lines (+42/-30) 4 files modified
configs/testrunner/launchpad-lazr.conf (+1/-1) lib/canonical/config/schema-lazr.conf (+2/-3) lib/lp/services/scripts/base.py (+36/-24) lib/lp/services/scripts/tests/test_cronscript_enabled.py (+3/-2) |
||||||||||||
To merge this branch: | bzr merge lp:~stub/launchpad/cronscripts | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Review via email: mp+35279@code.launchpad.net |
Commit message
Load the cronscript control file from a URL
Description of the change
The cronscript control file will be more useful if it can exist in one location rather than a separate copy on the dozen or so servers we run cronscripts on. So lets not use a filesystem path and instead use a URL. We can always use file: urls if we do want to use the local file system, which is how the tests work.
To post a comment you must log in.
A few thoughts:
- needs an os.path.abspath() around the tempfile name - /tmp is only the default, but you're making a url out of it.
- probably want a timeout on the file grabbing.
- if reading the file fails, perhaps we should fail-closed?