Removed django_cron dependancy, use manual started cronjobs

This commit is contained in:
2010-03-23 09:43:04 +00:00
parent 8a2bd17e0e
commit 484a459987
21 changed files with 37 additions and 877 deletions

View File

@@ -1,18 +1,13 @@
import time
import logging
from django_cron import cronScheduler, Job
from reddit.models import RedditAccount
from reddit.api import Inbox
class UpdateAPIs(Job):
class UpdateAPIs():
"""
Updates all Reddit API elements in the database
"""
# run every 24 hours
run_every = 86400
@property
def _logger(self):
if not hasattr(self, '__logger'):
@@ -60,5 +55,3 @@ class ProcessInbox(Job):
else:
print key.username
cronScheduler.register(UpdateAPIs)