Richard Acuña
10/22/2024, 1:12 AMBianca Hoch
10/23/2024, 2:42 PM.deploy()
method to deploy your flows? ie:
from prefect import flow
from prefect.runner.storage import GitRepository
from prefect_github import GitHubCredentials
if __name__ == "__main__":
github_repo = GitRepository(
url="<https://github.com/org/my-private-repo.git>",
credentials=GitHubCredentials.load("my-github-credentials-block"),
)
flow.from_source(
source=github_repo,
entrypoint="gh_credentials_block.py:my_flow",
).deploy(
name="private-github-deploy",
work_pool_name="my_pool",
parameters={"server_name": servers},
rrule="FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;BYHOUR=9;BYMINUTE=0"
)
Bianca Hoch
10/23/2024, 2:45 PM.from_source()
method is defining the repository you'd like to pull the code fromRichard Acuña
10/23/2024, 11:22 PM