https://prefect.io logo
t

Tilé

06/23/2022, 10:26 PM
Hello, I have a meta-question. I have a flow of 10 or more tasks that uses the
PrefectSecret
class. The problem is that there is a secret I have to pass on every task. It works properly, but when I try to visualize my flow I get this secret shown as input to every task, which basically ruins the whole diagram and makes it hard to read. So 1. Is there any other way to pass my secret to the tasks when running locally or using the agent from the cloud, or 2. Is there any way to remove the secret box from the visualized flow? Thanks
k

Kevin Kho

06/23/2022, 10:36 PM
You can use
Secret("NAME").get()
inside a task instead so that you don’t have to pass it in
2 Views