Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataflow orgtask mapping fix #407

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ddpui/api/client/prefect_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ def post_prefect_dataflow_v1(request, payload: PrefectDataFlowCreateSchema4):
raise HttpError(400, "dbt cli profile not found")

# push dbt pipeline tasks
for org_task in OrgTask.objects.filter(task__type__in=["dbt", "git"]).all():
for org_task in OrgTask.objects.filter(org=orguser.org, task__type__in=["dbt", "git"]).all():
logger.info(
f"found transform task {org_task.task.slug}; pushing to pipeline"
)
Expand Down Expand Up @@ -1431,7 +1431,7 @@ def get_prefect_dataflows_v1(request):
# opb__block_id__in=[x["opb__block_id"] for x in block_ids]
# ).first()
org_task_ids = DataflowOrgTask.objects.filter(dataflow=flow).values_list(
"id", flat=True
"orgtask_id", flat=True
)

lock = TaskLock.objects.filter(orgtask_id__in=org_task_ids).first()
Expand Down