Skip to content

Commit

Permalink
remove debugs. default params to empty object for pipeline object cre…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
nathandf committed Oct 13, 2023
1 parent 532058d commit 88113f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
9 changes: 1 addition & 8 deletions src/api/src/backend/views/ETLPipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def post(self, request, group_id, *_, **__):
"value": body.remote_inbox.globus_client_id
}
},
params=pipeline_template.get("params")
params=pipeline_template.get("params", {})
)
except (IntegrityError, OperationalError) as e:
return BadRequest(message=e.__cause__)
Expand Down Expand Up @@ -234,15 +234,8 @@ def post(self, request, group_id, *_, **__):
last_task_id = task_id

# Add the tasks from the template to the tasks list
for task in pipeline_template.get("tasks"):
print(task.get("id"), task.get("uses"))

tasks.extend([TemplateTask(**task) for task in pipeline_template.get("tasks")])

for task in tasks:
print(task.id, getattr(task, "uses", None))


# Update the dependecies of the gen-outbound-manifests task to
# include the last tapis job task
gen_outbound_manifests_task = next(filter(lambda t: t.id == "gen-outbound-manifests", tasks))
Expand Down
4 changes: 0 additions & 4 deletions src/api/src/backend/views/RunPipeline.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from pprint import pprint

from django.db import DatabaseError, IntegrityError, OperationalError

from backend.views.RestrictedAPIView import RestrictedAPIView
Expand Down Expand Up @@ -68,8 +66,6 @@ def post(self, request, group_id, pipeline_id, *_, **__):
args=body.args
)

pprint(pipeline_dispatch_request)

# Dispatch the request
pipeline_run = pipeline_dispatcher.dispatch(pipeline_dispatch_request, pipeline)
except ServerError as e:
Expand Down

0 comments on commit 88113f3

Please sign in to comment.