Exemplo n.º 1
0
def task_is_running():
    try:
        with FileLockOrFail(LOCKNAME):
            return False
    except CannotLock:
        return True
Exemplo n.º 2
0
def update(force_start=False, **kwargs):
    try:
        with FileLockOrFail(LOCKNAME):
            return update_main(force_start, **kwargs)
    except CannotLock:
        return 0