Skip to content

Commit

Permalink
use user-defined execution profile but use duplicate_submission_polic…
Browse files Browse the repository at this point in the history
…y defined in the pipeline template
  • Loading branch information
nathandf committed Oct 10, 2023
1 parent fa4b05a commit 8808840
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/api/src/backend/views/ETLPipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,15 @@ def post(self, request, group_id, *_, **__):
description=getattr(body, "description", None) or pipeline_template.get("description"),
group=group,
owner=request.username,
**body.execution_profile.dict(),
duplicate_submission_policy=(
pipeline_template
# Here we are using the execution profile provided in the request, but
# overwritting the 'duplicate_submission_policy' defined in the
# the pipeline template.
**{
**body.execution_profile.dict(),
"duplicate_submission_policy": pipeline_template
.get("execution_profile")
.get("duplicate_submission_policy")
),
},
env={
**pipeline_template.get("env"),
"LOCAL_INBOX_SYSTEM_ID": {
Expand Down

0 comments on commit 8808840

Please sign in to comment.