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

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

src/o/p/OpenRelay-HEAD/apps/server_talk/tasks.py   OpenRelay(Download)
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
 
logger = logging.getLogger(__name__)
            oldest.failure_count += 1
            oldest.save()
            if oldest.failure_count > HEARTBEAT_FAILURE_THRESHOLD:
                oldest.delete()