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,14 @@
import logging
from django_cron import cronScheduler, Job
from eve_api.models.api_player import EVEAccount, EVEPlayerCorporation
import eve_api.api_puller.accounts
from eve_api.api_exceptions import APIAuthException, APINoUserIDException
class UpdateAPIs(Job):
class UpdateAPIs():
"""
Updates all Eve API elements in the database
"""
# run every 2 hours
run_every = 7200
@property
def _logger(self):
if not hasattr(self, '__logger'):
@@ -36,6 +32,3 @@ class UpdateAPIs(Job):
for corp in EVEPlayerCorporation.objects.all():
corp.query_and_update_corp()
cronScheduler.register(UpdateAPIs)