mergin/client_pull.py
def pull_project_is_running(job):
    """
    Returns true/false depending on whether we have some pending downloads

    It also forwards any exceptions from workers (e.g. some network errors). If an exception
    is raised, it is advised to call pull_project_cancel() to abort the job.
    """
    for future in job.futures:
        if future.done() and future.exception() is not None:
            job.mp.log.error("Error while pulling data: " + str(future.exception()))
            job.mp.log.info("--- pull aborted")
            raise future.exception()
        if future.running():
            return True
    return False

    Returns true/false depending on whether we have some pending downloads

    It also forwards any exceptions from workers (e.g. some network errors). If an exception
    is raised, it is advised to call pull_project_cancel() to abort the job.
    
Returns true/false depending on whether we have some pending downloads
It also forwards any exceptions from workers . If an exception
is raised, it is advised to call pull_project_cancel() to abort the job.
Returns true / false depending on whether we have some pending downloads It also forwards any exceptions from workers . If an exception is raised it is advised to call pull_project_cancel () to abort the job .
def pull_project_is_running(job):
    for future in job.futures:
        if future.done() and future.exception() is not None:
            job.mp.log.error("Error while pulling data: " + str(future.exception()))
            job.mp.log.info("--- pull aborted")
            raise future.exception()
        if future.running():
            return True
    return False
def pull_project_is_running ( job ) : for future in job . futures : if future . done ( ) and future . exception ( ) is not None : job . mp . log . error ( "Error while pulling data: " + str ( future . exception ( ) ) ) job . mp . log . info ( "--- pull aborted" ) raise future . exception ( ) if future . running ( ) : return True return False
Returns true/false depending on whether we have some pending downloads
It also forwards any exceptions from workers (e.g.
Returns true / false depending on whether we have some pending downloads It also forwards any exceptions from workers ( e . g .
"""
    Returns true/false depending on whether we have some pending downloads

    It also forwards any exceptions from workers (e.g. some network errors). If an exception
    is raised, it is advised to call pull_project_cancel() to abort the job.
    """
job