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

Wraps run_dbt_ function in sync_compatible #15740

Merged
merged 5 commits into from
Oct 21, 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
6 changes: 6 additions & 0 deletions src/integrations/prefect-dbt/prefect_dbt/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ def _compile_kwargs(self, **open_kwargs: Dict[str, Any]) -> Dict[str, Any]:
return super(type(self), modified_self)._compile_kwargs(**open_kwargs)


@sync_compatible
@task
async def run_dbt_build(
profiles_dir: Optional[Union[Path, str]] = None,
Expand Down Expand Up @@ -470,6 +471,7 @@ def dbt_test_flow():
return results


@sync_compatible
@task
async def run_dbt_model(
profiles_dir: Optional[Union[Path, str]] = None,
Expand Down Expand Up @@ -544,6 +546,7 @@ def dbt_test_flow():
return results


@sync_compatible
@task
async def run_dbt_test(
profiles_dir: Optional[Union[Path, str]] = None,
Expand Down Expand Up @@ -618,6 +621,7 @@ def dbt_test_flow():
return results


@sync_compatible
@task
async def run_dbt_snapshot(
profiles_dir: Optional[Union[Path, str]] = None,
Expand Down Expand Up @@ -692,6 +696,7 @@ def dbt_test_flow():
return results


@sync_compatible
@task
async def run_dbt_seed(
profiles_dir: Optional[Union[Path, str]] = None,
Expand Down Expand Up @@ -766,6 +771,7 @@ def dbt_test_flow():
return results


@sync_compatible
@task
async def run_dbt_source_freshness(
profiles_dir: Optional[Union[Path, str]] = None,
Expand Down
Loading