def create_pipeline(uid, pipeline): log.info('creating pipeline %s', uid) pipeline_steps = [ PipelineStep.from_dict(step) for step in pipeline['parameters']['steps'] ] PIPELINES[uid] = ['running', pipeline_steps]
def pipeline_steps(): pipeline_steps_ = [ { "api_url": "http://localhost:5001/signoff1", "description": "signoff 1", "parameters": { }, "parameters_schema": "https://null", "requires": [ ], "uid": "signoff1" }, { "api_url": "http://localhost:5001/signoff2", "description": "signoff 2 - relman gatekeeps all the things", "parameters": { }, "parameters_schema": "https://null", "requires": [ "signoff1" ], "uid": "signoff2" }, { "api_url": "http://localhost:5001/publish1", "description": "final publish", "parameters": { }, "parameters_schema": "https://null", "requires": [ "signoff2" ], "uid": "publish1" } ] return [PipelineStep.from_dict(step) for step in pipeline_steps_]
def pipeline_steps(): pipeline_steps_ = [ { 'api_url': 'http://localhost:5001/signoff1', 'description': 'signoff 1', 'parameters': { }, 'parameters_schema': 'https://null', 'requires': [ ], 'uid': 'signoff1' }, { 'api_url': 'http://localhost:5001/signoff2', 'description': 'signoff 2 - relman gatekeeps all the things', 'parameters': { }, 'parameters_schema': 'https://null', 'requires': [ 'signoff1' ], 'uid': 'signoff2' }, { 'api_url': 'http://localhost:5001/publish1', 'description': 'final publish', 'parameters': { }, 'parameters_schema': 'https://null', 'requires': [ 'signoff2' ], 'uid': 'publish1' } ] return [PipelineStep.from_dict(step) for step in pipeline_steps_]
def create_pipeline(uid, pipeline): log.info("creating pipeline %s", uid) pipeline_steps = [PipelineStep.from_dict(step) for step in pipeline["parameters"]["steps"]] PIPELINES[uid] = ["running", pipeline_steps]