Merge lp:~stub/launchpad/cronscripts into lp:launchpad
Proposed by
Stuart Bishop
on 2010-09-13
| Status: | Merged | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Robert Collins on 2010-09-14 | ||||||||||||
| 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) | 2010-09-13 | Approve on 2010-09-14 | |
|
Review via email:
|
|||
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?