https://prefect.io logo
z

Zi Yuan

09/07/2022, 11:26 AM
Hi hi! regarding the PrefectSecret task in Prefect 1.0. Is it fine to directly use Secret(secret_name).get() (from prefect.client.secrets import Secret ) instead of the PrefectSecret if I don’t want let it be a task? Any downsides to do like this? Many thaanks!
1
c

Christopher Boyd

09/07/2022, 1:10 PM
Hi Zi, that’s prefectly okay and the suggested practice outside of tasks 🙂 https://docs-v1.prefect.io/orchestration/concepts/secrets.html#using-secrets-in-tasks
z

Zi Yuan

09/07/2022, 1:13 PM
thaaanks!
4 Views