https://prefect.io logo
Title
b

Braun Reyes

02/28/2020, 6:46 PM
context option on flow run in cloud is šŸ”„ could totally use this to pass things to remote environment and agent for running tasks from cloud!
:upvote: 6
:marvin: 3
a

Arsenii

03/02/2020, 3:09 AM
Sounds interesting, but could you please give me a practical example where contexts would be useful? I can't wrap my head around the use cases
b

Braun Reyes

03/10/2020, 5:03 PM
sorry I miseed this....so I think of context being useful to 2 ways, all in the vein of running ephemeral containers as the flows: • using the external context you can define in prefect clould, you could pass cpu, memory, and dask kwargs to the agent....and agent could use those when creating your containers that run the flow • another option, though I am not sure its possible yet, but define that context in the flow itself, so that it gets stored in the flow metadata that goes to cloud on registration. Then agent could use that context or if provided by the external context via running the flow via cloud, it would get overriden with the external context
šŸ‘ 1