Skip to content

Commit

Permalink
Wraps run_dbt_ function in sync_compatible (#15740)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilRex authored Oct 21, 2024
1 parent c78feea commit 4583539
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 4583539

Please sign in to comment.