def pipelines_stop_operations(pipeline_run_id: int, message: str = None) -> None: pipeline_run = get_pipeline_run(pipeline_run_id=pipeline_run_id) if not pipeline_run: _logger.info('Pipeline `%s` does not exist any more.', pipeline_run_id) stop_operation_runs_for_pipeline_run(pipeline_run, message=message)
def stop_pipeline_operation_runs(pipeline_run_id, message=None): pipeline_run = get_pipeline_run(pipeline_run_id=pipeline_run_id) if not pipeline_run: logger.info( 'Pipeline `{}` does not exist any more.'.format(pipeline_run_id)) stop_operation_runs_for_pipeline_run(pipeline_run, message=message)
def pipelines_skip_operations(pipeline_run_id, message=None): pipeline_run = get_pipeline_run(pipeline_run_id=pipeline_run_id) if not pipeline_run: _logger.info('Pipeline `%s` does not exist any more.', pipeline_run_id) # We stop all op runs first stop_operation_runs_for_pipeline_run(pipeline_run, message=message) # Then we marked them as skipped skip_operation_runs_for_pipeline_run(pipeline_run, message=message)
def pipelines_skip_operations(pipeline_run_id, message=None): pipeline_run = get_pipeline_run(pipeline_run_id=pipeline_run_id) if not pipeline_run: _logger.info('Pipeline `%s` does not exist any more.', pipeline_run_id) # We stop all op runs first stop_operation_runs_for_pipeline_run(pipeline_run, message=message) # Then we marked them as skipped skip_operation_runs_for_pipeline_run(pipeline_run, message=message)
def pipelines_stop_operations(pipeline_run_id, message=None): pipeline_run = get_pipeline_run(pipeline_run_id=pipeline_run_id) if not pipeline_run: _logger.info('Pipeline `%s` does not exist any more.', pipeline_run_id) stop_operation_runs_for_pipeline_run(pipeline_run, message=message)