-
I'm trying to get my head around how the environment and the executor interact. Are they orthogonal somehow? I would like to execute in dask_gateway in Kubernetes on EKS -- I see the snippet in the advanced tutorials for setting that up. Also, if I'm running the same flow often, and/or have it running on a schedule, I should use the dask kubernetes environment? How do the executor and the environment interact? Are the credentials I use for the dask gateway encrypted by the environment and stored in the storage (if so, using s3 storage I probably should encrypt it and use setup service accounts to access the keys ... another small snarl). If I want one flow to be able to create another flow, can the parent flow task simply create a flow and have security context inherited somehow, or should I pass and store credentials somewhere, and/or setup service accounts? What is where and a picture and description of how they interact/are copied from place to place, and what service accounts are created and used by what (etc) would help me figure all of this out. Thanks! Update it would seem that neither Update 2 hmm... and what about the agent? Should I be creating a deployment with an agent in it ... using a LocalEnvironment with s3 storage ... say? hmm.. and where/how does the agent learn about new or scheduled flows from? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @shaunc we're in the process of smoothing over some of this WRT the environments/executors/agents but for the meantime here are some examples of how the executor is used on correlation with the environment https://docs.prefect.io/orchestration/execution/local_environment.html#examples. In the environment's |
Beta Was this translation helpful? Give feedback.
Hi @shaunc we're in the process of smoothing over some of this WRT the environments/executors/agents but for the meantime here are some examples of how the executor is used on correlation with the environment https://docs.prefect.io/orchestration/execution/local_environment.html#examples. In the environment's
executor
kwarg you can initialize a client for interacting with yourdask_gateway
.