Open seanpwlms opened 4 months ago
@seanpwlms I can't reproduce this with the latest version, but it does look like nothing actually happens which is what's documented in #15647.
Version: 3.0.10
API version: 0.8.4
Python version: 3.12.7
Git commit: 3aa2d893
Built: Tue, Oct 15, 2024 1:31 PM
OS/Arch: darwin/arm64
Profile: sandbox
Server type: cloud
Pydantic version: 2.9.2
Integrations:
prefect-shell: 0.3.0
prefect-dbt: 0.6.2
First check
Bug summary
The code example below results in a completed flow run with no task runs, instead of raising an exception about not awaiting coroutines.
run_dbt_build
is an async function that callstrigger_dbt_cli_command
. Callingtrigger_dbt_cli_command
synchronously works because it has async_compatible
decorator. I would think adding thesync_compatible
decorator to the command-specific tasks would resolve this issue.Reproduction
Error
Versions (
prefect version
output)Additional context
prefect-dbt==0.6.0rc2
Reproduction requires a dbt project in the working directory and a profiles file in
~/.dbt