Adam Lewis
03/17/2021, 1:52 PMJim Crist-Harif
03/17/2021, 1:55 PMif __name__ == "__main__":
...
When prefect loads your flow to execute it, it is not run as a script, so that block won't execute and your executor won't be configured.
I recommend only putting the flow.register
call within that block and moving the rest of the configuration up above that check.Adam Lewis
03/17/2021, 1:57 PMJim Crist-Harif
03/17/2021, 1:58 PM