def completeAndExitChildren(self):
        # This function is called under normal circumstances (i.e., not because
        # of a keyboard interrupt). So we can close the pool of processes 
        # in the normal way (don't need to use the pids here)
        # prevent more jobs from starting, and exit
        if 0 > len(self.current_running_job_pids):
            self.pool.close()
            # wait for the worker processes (children) to exit (must be called after terminate() or close()
            self.pool.join()
        self.unregister_with_server()
dataset/ETHPy150Open Mouse-Imaging-Centre/pydpiper/pydpiper/pipeline_executor.py/pipelineExecutor.completeAndExitChildren/swapped operands of `>`