I had initially tried environments, exactly the same way, didn’t work. Thats when I found out environments are deprecated, and substituted for run_config + executor.
I am suspecting that my executor choices aren’t being picked up by server, and prefect is falling back to the default
. Can you (or anyone else) verify whether prefect server shows information about the executor for a registered flow? Either directly under the flow details, or under the flow environment details?
1 year ago
I did not see executor information in the flow details (or in the GraphQL responses)I've assigned the environment at the time of the flow initialization and not as a later assignment (and not the time of register), if that matters
1 year ago
Time of assignment was the issue 😅 .
I was assigning server related members (
) at register time, while building a custom docker image, and serializing my flow in the docker image before register time, in a previous run of python.
Therefore, my serialized flow pickle had empty values for
. I suppose only
are sent to server, and
is not. Since prefect server was not enforcing an executor on my flow run, and my serialized flow had no executor choice, I was falling back to the default
Many thanks, discussing with you probably saved me multiple hours 😊