t

    Tilé

    3 months ago
    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. So1. 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
    Kevin Kho

    Kevin Kho

    3 months ago
    You can use
    Secret("NAME").get()
    inside a task instead so that you don’t have to pass it in