Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/o/p/OpenRelay-HEAD/apps/server_talk/tasks.py   OpenRelay(Download)
from server_talk.api import RemoteCall
from server_talk.models import LocalNode, Sibling, NetworkResourceVersion, ResourceHolder
from server_talk.literals import NODE_STATUS_DOWN, NODE_STATUS_UP
from server_talk.conf.settings import HEARTBEAT_FAILURE_THRESHOLD
 
            response = node.heartbeat()
            oldest.cpuload = int(float(response['cpuload']))
            oldest.status = NODE_STATUS_UP
            oldest.failure_count = 0
            oldest.save()

src/o/p/OpenRelay-HEAD/apps/server_talk/api.py   OpenRelay(Download)
    HeartbeatError, InventoryHashError, ResourceListError,
    NetworkResourceNotFound, NetworkResourceDownloadError)
from server_talk.literals import NODE_STATUS_UP
 
logger = logging.getLogger(__name__)