Daniel Manson
07/29/2022, 12:29 PMGit
storage clones the full repo, so I'm trying to use that rather than the GitHub
storage as that looks to just clone the one flow file (having looked at the code). However, when using Git
storage I get the following error as the only log in my flow:
{'type': ['Unsupported value: Git']}
@task
def hello_task():
logger = prefect.context.get("logger")
<http://logger.info|logger.info>("Hello world")
store = Git(
repo="Company/repo",
flow_path="/pipelines/hello-world.py",
branch_name='my-branch',
repo_host="<http://github.com|github.com>",
git_token_secret_name="GITHUB_ACCESS_TOKEN"
)
with Flow("hello-world", storage=store) as flow:
hello_task()
flow.run_config = KubernetesRun()
Anna Geller
07/29/2022, 12:50 PMDaniel Manson
07/29/2022, 1:23 PMAnna Geller
07/29/2022, 1:59 PMDaniel Manson
07/29/2022, 2:00 PM