Is there anyway to see which agent is currently running a task (specifically a label)? Use case I am looking to handle is to select Secrets based on agent label/environment (dev vs. prod)
k
Kevin Kho
06/21/2021, 7:56 PM
Hi @Leon Kozlowski, there is no good way to do this at the moment. The best way would be a parameter that controls the the appropriate Secrets once resolved. Secrets would then need to be named differently like
prod_dbconnection
,
dev_dbconnection
. If these really need to be the same name, then you would need multiple tenants to hold those secrets.
l
Leon Kozlowski
06/21/2021, 8:06 PM
Environment based naming should work fine for me
z
Zanie
06/21/2021, 8:10 PM
You can also query for the current labels during your flow run since the current flow run id is in the context
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.