Closed Bug 701253 Opened 13 years ago Closed 12 years ago

Switch partitioning cron job to use database function

Categories

(Socorro :: General, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

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.
Oh,the function is installed on DevDB.
Target Milestone: 2.3.3 → 2.3.4
Lars likely to be out for 2.3.4 -> 2.4
Target Milestone: 2.3.4 → 2.4
this will be the 1st configman based cron app.

it should be built on the generic-app framework (see Bug 713769).
Assignee: lars → peterbe
Blocks: 712764
Depends on: 713769
Component: Socorro → General
Product: Webtools → Socorro
Target Milestone: 2.4 → 2.4.2
Target Milestone: 2.4.2 → 2.4
Target Milestone: 2.4 → 2.4.1
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.
OK, I should retest the stored procedure, given that it may not match the current schema.  Will do.
Checked the stored procedure, works fine.  Is already installed on prod, so no deployment necessary.
Depends on: 721018
Depends on: 721134
Target Milestone: 2.4.1 → 2.4.2
Depends on: 681476
No longer depends on: 681476, 721018
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.
Blocks: 681476
Target Milestone: 2.4.2 → 2.4.3
Landed. Just now depending on the installation of configman in production.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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?
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.