You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In prefect 3.0.1, trigger_dbt_cloud_job_run_and_wait_for_completion appears to exit immediately. This happens when executing it both from a sync or an async flow. We usually run it from a sync flow but decided to try with async to see if it'd work, or if perhaps we had to await trigger_dbt_cloud_job_run_and_wait_for_completion, which is an async subflow (marked as sync compatible, I believe). Awaiting it produced an error message.
I don't have any detailed logs at the moment but it should be easy to re-create.
In our case, the parent flow that is attempting to trigger and wait for the dbt cloud job run simply exits successfully (state = Completed), without trigger_dbt_cloud_job_run_and_wait_for_completion having created a subflow.
bjorhn
changed the title
trigger_dbt_cloud_job_run_and_wait_for_completion in prefect-dbt doesn't work properly in 3.0.1
trigger_dbt_cloud_job_run_and_wait_for_completion in prefect-dbt doesn't work as expected in 3.0.1
Sep 11, 2024
Hey Chris - You're right. Running it in an async flow works fine, my dev just wasn't aware of some other changes related to the migration that had to be made as well (mostly related to block loading). I was mistaken about the dbt flow being sync_compatible, too. Probably shouldn't create issues when I don't have the code in front of me, got too excited about finishing the migration to 3.0
Bug summary
In prefect 3.0.1, trigger_dbt_cloud_job_run_and_wait_for_completion appears to exit immediately. This happens when executing it both from a sync or an async flow. We usually run it from a sync flow but decided to try with async to see if it'd work, or if perhaps we had to await trigger_dbt_cloud_job_run_and_wait_for_completion, which is an async subflow (marked as sync compatible, I believe). Awaiting it produced an error message.
I don't have any detailed logs at the moment but it should be easy to re-create.
In our case, the parent flow that is attempting to trigger and wait for the dbt cloud job run simply exits successfully (state = Completed), without trigger_dbt_cloud_job_run_and_wait_for_completion having created a subflow.
We have a temporary workaround in place but we're not entirely sure why it's necessary:
Version info (
prefect version
output)Additional context
No response
The text was updated successfully, but these errors were encountered: