yusuf yel
09/10/2022, 3:12 PMRuntimeError: A 'sync_compatible' method was called from a context that was previously async but is now sync. The sync call must be changed to run in a worker thread to support sending the coroutine for 'build_from_flow' to the main thread.
I followed this guide: https://docs.prefect.io/tutorials/deployments/#build-a-deployment-definition Any idea what went wrong? Using prefect 2.3.1 And deployment in scripts looks like this:
deployment = Deployment.build_from_flow(
flow=main,
name="model_training",
schedule=IntervalSchedule(interval=timedelta(minutes=5)),
work_queue_name="ml"
)
deployment.apply()
Anna Geller
09/10/2022, 4:30 PMJeff Hale
09/10/2022, 4:44 PMschedule
paramater. The work queue name gets passed to work_queue_name
You can see a guide I wrote here: https://medium.com/the-prefect-blog/deploy-prefect-pipelines-with-python-perfect-68c944a3a89fyusuf yel
09/10/2022, 6:11 PMAnna Geller
09/10/2022, 6:31 PM