Update the clustering and job processor app to use the ClusterScope setting and not their own settings singleton

This commit is contained in:
Roberto Rosario
2012-09-15 04:56:58 -04:00
parent fa2795dd96
commit a4bbc65508
17 changed files with 244 additions and 218 deletions

View File

@@ -4,7 +4,7 @@ import logging
from lock_manager.decorators import simple_locking
from .models import Node, ClusteringConfig
from .models import Node
from .signals import node_heartbeat
LOCK_EXPIRE = 10
@@ -23,5 +23,5 @@ def send_heartbeat():
@simple_locking('house_keeping', 10)
def house_keeping():
logger.debug('starting')
ClusteringConfig.cluster.check_dead_nodes()
Node.objects.check_dead_nodes()