removed unecesarry lines

anubhav
Nadesh Seen 2 years ago
parent 70ca4fedfe
commit 839ac2d6ca

@ -282,12 +282,11 @@ def execute_action(action_name):
# EXAMPLE URL: http://10.129.28.219:5001/run/dag/odd-even-test/{"number":16} # EXAMPLE URL: http://10.129.28.219:5001/run/mydagtrigger
@app.route('/run/<trigger_name>', methods=['GET', 'POST']) @app.route('/run/<trigger_name>', methods=['GET', 'POST'])
def orchestrate_dag(trigger_name): def orchestrate_dag(trigger_name):
try: try:
with app.app_context():
triggers = validate_trigger.get_trigger_json(trigger_name) triggers = validate_trigger.get_trigger_json(trigger_name)
if(len(triggers)==0): if(len(triggers)==0):
return {"response": "the given trigger is not registered in DAGit trigger store"} return {"response": "the given trigger is not registered in DAGit trigger store"}

Loading…
Cancel
Save