Esempio n. 1
0
def job_wait():
    """
    This job stops all work in the thread/process until all jobs on the
    engine are completed.
    """
    # Grab all the jos on the server (the last 25, be default)
    all_jobs = job.get_all(server)
    # For each job in the list, check to see if it is running (not ended)
    for jobobj in all_jobs:
        if not (jobobj.job_state in ["CANCELED", "COMPLETED", "FAILED"]):
            print_debug("Waiting for " + jobobj.reference + " (currently: " +
                        jobobj.job_state +
                        ") to finish running against the container")

            # If so, wait
            job_context.wait(server, jobobj.reference)
def job_wait():
    """
    This job stops all work in the thread/process until all jobs on the 
    engine are completed.
    """
    #Grab all the jos on the server (the last 25, be default)
    all_jobs = job.get_all(server)
    #For each job in the list, check to see if it is running (not ended)
    for jobobj in all_jobs:
        if not (jobobj.job_state in ["CANCELED", "COMPLETED", "FAILED"]):
            print_debug("Waiting for " + jobobj.reference + " (currently: " + 
                        jobobj.job_state + 
                        ") to finish running against the container")

            #If so, wait
            job_context.wait(server,jobobj.reference)
    def job_wait(self):
        """
        This job stops all work in the thread/process until jobs are completed.

        No arguments
        """
        # Grab all the jos on the server (the last 25, be default)
        all_jobs = job.get_all(self.server_session)

        # For each job in the list, check to see if it is running (not ended)
        for jobobj in all_jobs:
            if not (jobobj.job_state in ["CANCELED", "COMPLETED", "FAILED"]):
                print_debug("\nDEBUG: Waiting for %s (currently: %s) to "
                            "finish running against the container.\n" %
                            (jobobj.reference, jobobj.job_state))

                # If so, wait
                job_context.wait(self.server_session, jobobj.reference)
    def job_wait(self):
        """
        This job stops all work in the thread/process until jobs are completed.

        No arguments
        """
        #Grab all the jos on the server (the last 25, be default)
        all_jobs = job.get_all(self.server_session)

        #For each job in the list, check to see if it is running (not ended)
        for jobobj in all_jobs:
            if not (jobobj.job_state in ["CANCELED", "COMPLETED", "FAILED"]):
                print_debug('\nDEBUG: Waiting for %s (currently: %s) to '
                            'finish running against the container.\n' %
                            (jobobj.reference, jobobj.job_state))

                #If so, wait
                job_context.wait(self.server_session, jobobj.reference)