Closed
Bug 609920
Opened 15 years ago
Closed 15 years ago
prod MDN put update_feeds into cron
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ozten, Unassigned)
References
()
Details
The production twitter feeds are stale (2 months ago).
Please put this command into an hourly cron
python2.6 manage.py update_feeds
Please tweak settings.py to have
LOG_LEVEL = logging.WARN to avoid hourly emails from prod.
Comment 1•15 years ago
|
||
This has been set up for months:
*/10 * * * * apache cd /data/dekiwiki/www/django/developer.mozilla.org/mdn; /usr/bin/python26 manage.py update_feeds
and from the commmand line:
[root@mradm02 mdn]# sudo -u apache python26 manage.py update_feeds
[root@mradm02 mdn]#
Comment 2•15 years ago
|
||
With DEBUG:
[root@mradm02 mdn]# sudo -u apache python26 manage.py update_feeds
10:53:1288979602 nose.plugins.manager:DEBUG DefaultPluginManager load plugin sqlalchemy = sqlalchemy.test.noseplugin:NoseSQLAlchemy :/data/dekiwiki/www/django/developer.mozilla.org/mdn/vendor/packages/nose/nose/plugins/manager.py:375
10:53:1288979602 mdn.feeder:INFO Starting to fetch updated feeds :/data/dekiwiki/www/django/developer.mozilla.org/mdn/apps/feeder/management/commands/update_feeds.py:36
10:53:1288979602 mdn.feeder:INFO Finished run in 0.022125 seconds for 0 new entries :/data/dekiwiki/www/django/developer.mozilla.org/mdn/apps/feeder/management/commands/update_feeds.py:51
| Reporter | ||
Comment 3•15 years ago
|
||
In production, can you execute the following two SQL commands and pastebin both resuls:
SELECT * FROM feeder_feed;
UPDATE feeder_feed SET feeder_feed = true, etag = '';
There is no sensitive info....
| Reporter | ||
Comment 4•15 years ago
|
||
Typo in comment #3, try:
SELECT * FROM feeder_feed;
UPDATE feeder_feed SET enabled = true, etag = '';
| Reporter | ||
Comment 5•15 years ago
|
||
Thanks oremj!
I'll file up with a new project bug to fix root cause.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•7 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•