luther1337
02/18/2022, 6:08 PMdocker run
. however, when i deploy the flows to kube and use prefect cloud to trigger a run, i get the following error:
Failed to load and execute Flow's environment: FlowStorageError('An error occurred while unpickling the flow:\n ModuleNotFoundError("No module named \'my_package\'")\nThis may be due to a missing Python module in your current environment. Please ensure you have all required flow dependencies installed.')
i'm using GCS as the storage. i'm also wondering if/why i need to use GCS as a storage -- doesn't the execution environment have access to the flows? why do they even need to be pickled?
thanks in advance! 🙂Anna Geller
luther1337
02/18/2022, 6:55 PMKevin Kho
luther1337
02/18/2022, 7:15 PMKevin Kho
luther1337
02/18/2022, 7:19 PMKevin Kho
luther1337
02/18/2022, 7:20 PMKevin Kho
luther1337
02/18/2022, 7:22 PMKevin Kho
KubernetesRun
otherwise it won’t know what image to use and will pull the default Prefect image and run your Flow on top of that. The Flow does not run in the same pod as the agent. The agent spins up a new Kubernetes job so the execution environment is differentluther1337
02/18/2022, 7:39 PM