Adam Lewis03/17/2021, 1:52 PM
Jim Crist-Harif03/17/2021, 1:55 PM
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
if __name__ == "__main__": ...
call within that block and moving the rest of the configuration up above that check.
Adam Lewis03/17/2021, 1:57 PM
Jim Crist-Harif03/17/2021, 1:58 PM