Alejandro Sanchez Losa
12/20/2021, 4:39 PMAnna Geller
STORAGE = GitHub(
repo="anna-geller/packaging-prefect-flows",
path=f"flows/{FLOW_NAME}.py",
access_token_secret="GITHUB_ACCESS_TOKEN", # required with private repositories
)
the PrefectSecret is a task, therefore it should only be used within a Flow constructor:
with Flow("yourflow") as flow:
some_secret = PrefectSecret("SOME_SECRET")
Alejandro Sanchez Losa
12/20/2021, 4:46 PMAlejandro Sanchez Losa
12/20/2021, 4:46 PMAlejandro Sanchez Losa
12/20/2021, 4:48 PMAlejandro Sanchez Losa
12/20/2021, 4:48 PMAnna Geller
Alejandro Sanchez Losa
12/20/2021, 4:54 PMAlejandro Sanchez Losa
12/20/2021, 4:54 PMAlejandro Sanchez Losa
12/20/2021, 5:03 PMAlejandro Sanchez Losa
12/20/2021, 5:03 PMAlejandro Sanchez Losa
12/20/2021, 5:03 PMAlejandro Sanchez Losa
12/20/2021, 5:04 PMAlejandro Sanchez Losa
12/20/2021, 5:06 PMpip install 'prefect[github]'
Alejandro Sanchez Losa
12/20/2021, 5:09 PMAlejandro Sanchez Losa
12/20/2021, 5:14 PM