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

deps,clean and docs generate missing from the pipeline. #408

Merged
merged 1 commit into from
Jan 3, 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
39 changes: 19 additions & 20 deletions ddpui/management/commands/run-tasks-migrate-cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,26 +1008,7 @@ def migrate_org_pipelines(self, org: Org):
continue

org_task = OrgTask.objects.filter(org=org, task=task).first()
if org_task.task.slug == TASK_DBTRUN:
dbt_core_task_setup = PrefectDbtTaskSetup(
seq=TRANSFORM_TASKS_SEQ[org_task.task.slug] + seq,
slug=org_task.task.slug,
commands=[
f"{dbt_binary} {org_task.task.command} --target {target}"
],
type=DBTCORE,
env={},
working_dir=project_dir,
profiles_dir=f"{project_dir}/profiles/",
project_dir=project_dir,
cli_profile_block=cli_profile_block.block_name,
cli_args=[],
)

task_config = dict(dbt_core_task_setup)
tasks.append(task_config)

elif org_task.task.slug == TASK_GITPULL:
if org_task.task.slug == TASK_GITPULL:
shell_env = {"secret-git-pull-url-block": ""}

gitpull_secret_block = OrgPrefectBlockv1.objects.filter(
Expand All @@ -1050,6 +1031,24 @@ def migrate_org_pipelines(self, org: Org):

task_config = dict(shell_task_setup)
tasks.append(task_config)
else:
dbt_core_task_setup = PrefectDbtTaskSetup(
seq=TRANSFORM_TASKS_SEQ[org_task.task.slug] + seq,
slug=org_task.task.slug,
commands=[
f"{dbt_binary} {org_task.task.command} --target {target}"
],
type=DBTCORE,
env={},
working_dir=project_dir,
profiles_dir=f"{project_dir}/profiles/",
project_dir=project_dir,
cli_profile_block=cli_profile_block.block_name,
cli_args=[],
)

task_config = dict(dbt_core_task_setup)
tasks.append(task_config)

params["config"] = {"tasks": tasks}
logger.info(f"PARAMS {new_dataflow.deployment_id}")
Expand Down