Vladislav
09/21/2022, 12:55 PMJeff Hale
09/21/2022, 1:00 PMVladislav
09/21/2022, 1:10 PMprefect deployment build flow.py:snowflake_lte_process
prefect deployment apply snowflake_lte_process-deployment.yaml
prefect agent start -q 'default'
Then the flow appears in deployment, but i can’t run the deployment nether via prefect cli nor via the UI ’Run” button in orion.
All files are stored in the same project folder.
I can share the flow code but can the code be an issue here? Because running it s a python file works fine, terminal returns ‘all states completed’Jeff Hale
09/21/2022, 1:12 PMVladislav
09/21/2022, 1:13 PMJeff Hale
09/21/2022, 1:32 PMVladislav
09/21/2022, 1:33 PMJeff Hale
09/21/2022, 1:37 PM-a
flag on the build command if you like). I think naming the file flow.py might be messing up the import of the flow.Vladislav
09/21/2022, 1:40 PM@flow
at the end of the file (as i’ve seen in examples), smth like
…
``@flow`
def final_function():
…
final_function()
I don’t know why, but removing the function call helped.
Thanks for your help, Jeff!!!Jeff Hale
09/21/2022, 3:58 PMif __name__ =='__main__':
block would also fix, then, probably.