Closed
Bug 701253
Opened 13 years ago
Closed 13 years ago
Switch partitioning cron job to use database function
Categories
(Socorro :: General, task)
Tracking
(Not tracked)
RESOLVED
FIXED
2.4.3
People
(Reporter: jberkus, Assigned: peterbe)
References
Details
(Whiteboard: [qa-])
This is actually lars's bug, but every time he files it, Bugzilla eats it.
I've written the database function Lars requested to control weekly partitioning of reports et. al. It's documented on socorro-docs:
https://github.com/mozilla/socorro-docs/blob/master/docs/databaseadminfunctions.rst
Next step is for Lars to change the cron job to use this.
Reporter | ||
Comment 1•13 years ago
|
||
Oh,the function is installed on DevDB.
Updated•13 years ago
|
Target Milestone: 2.3.3 → 2.3.4
Comment 4•13 years ago
|
||
this will be the 1st configman based cron app.
it should be built on the generic-app framework (see Bug 713769).
Updated•13 years ago
|
Component: Socorro → General
Product: Webtools → Socorro
Updated•13 years ago
|
Target Milestone: 2.4 → 2.4.2
Updated•13 years ago
|
Target Milestone: 2.4.2 → 2.4
Updated•13 years ago
|
Target Milestone: 2.4 → 2.4.1
Assignee | ||
Comment 5•13 years ago
|
||
Code "complete" https://github.com/mozilla/socorro/pull/281 and works but still needs some more tests for new lib code added. Haven't actually tested it manually but functional tests assures it calls the stored procedure.
Reporter | ||
Comment 6•13 years ago
|
||
OK, I should retest the stored procedure, given that it may not match the current schema. Will do.
Reporter | ||
Comment 7•13 years ago
|
||
Checked the stored procedure, works fine. Is already installed on prod, so no deployment necessary.
Updated•13 years ago
|
Target Milestone: 2.4.1 → 2.4.2
Assignee | ||
Updated•13 years ago
|
Assignee | ||
Comment 8•13 years ago
|
||
Code landed in master here:
https://github.com/mozilla/socorro/commit/def1a68d194c66f95c21e41971f3d549ae874040
How it works is documented here:
http://socorro.readthedocs.org/en/latest/generic_app.html
Remaining is:
* bug721134 - installing configman from submodule into /usr/lib/python/site-packages/...
* potentially a different way of starting this and all cron script (work in progress by lonnen)
* actual parameters shouldn't come from commonconfig. This works fine for testing but this should ideally soon be replaced with something better.
Updated•13 years ago
|
Target Milestone: 2.4.2 → 2.4.3
Assignee | ||
Comment 9•13 years ago
|
||
Landed. Just now depending on the installation of configman in production.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•13 years ago
|
||
This is now resolved as fixed as configman is correctly installed in production.
But don't we also need to actually execute the new cron script? I.e. socorro/cron/weeklyReportsPartitions.py
Who can wire that up? Who knows how often this should be executed?
Updated•13 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•