Closed Bug 757942 Opened 12 years ago Closed 12 years ago

[crontabber] Back up and initial-read from postgres instead of just file system

Categories

(Socorro :: General, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Unassigned)

Details

The current JSONDatabase needs to become smarter
https://github.com/mozilla/socorro/blob/master/socorro/cron/crontabber.py#L144

If no crontabber.json file exists, it can read from postgres instead (e.g. automatic restore) and every time it saves, it can send the JSON dump over to postgres. 

* Josh needs to set up a table (and decide on what user to connect as)
* The configuration of this needs to be configman configured so we can keep the current JSONJobDatabase and add a fancy one that you can swap in.
Commit pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/0462dced97e9422ad1f3f63078b2c4e6a7b4edaf
bug757942 - crontabber that uses postgres as a backup, r=rhelmer
Commits pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/54c803a123d3058742ed838547925eb8cd2a3561
bug757942 - more defensive integration test suite

https://github.com/mozilla/socorro/commit/5b65fd4c43c2be7cb4094d1261c39359e32c378c
Merge pull request #620 from peterbe/bug757942-bustage-test-setup

bug757942 - more defensive integration test suite
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.