q ret
02/15/2023, 2:42 PMRyan Peden
02/15/2023, 3:40 PMbuild_from_flow
and apply
methods are both async functions; we've made it so you can call them from non-async places without using await, but you'll need to await
them if you call them from an async context (such as the top level of a notebook).
So in this case, I believe you'd just need to write;
deployment = await Deployment.build_from_flow(
flow=download_test_flow,
name="download_test_flow-deployment",
version=1,
apply = True,
)
Since you have apply = True
I don't think you'd need to call apply separately, but if you wanted to, it would then be:
await deployment.apply()
q ret
02/15/2023, 4:00 PMRyan Peden
02/15/2023, 5:40 PMq ret
02/15/2023, 5:41 PMRyan Peden
02/15/2023, 5:44 PMq ret
02/15/2023, 5:46 PMRyan Peden
02/15/2023, 5:47 PMq ret
02/15/2023, 5:48 PMRyan Peden
02/15/2023, 5:48 PMprefect agent start -q default
q ret
02/15/2023, 5:49 PM