def _cancel_all(self): """Cancel all reV pipeline modules for all batch jobs.""" for d in self.sub_dirs: pipeline_config = os.path.join( d, os.path.basename(self._config.pipeline_config)) if os.path.isfile(pipeline_config): Pipeline.cancel_all(pipeline_config)
def from_config(ctx, config_file, cancel, monitor, background, verbose): """Run reV pipeline from a config file.""" verbose = any([verbose, ctx.obj['VERBOSE']]) if cancel: Pipeline.cancel_all(config_file) elif monitor and background: pipeline_monitor_background(config_file, verbose=verbose) else: Pipeline.run(config_file, monitor=monitor, verbose=verbose)