Miles
04/04/2024, 2:36 PMif __name__ == "__main__":
# Deploy the flow with specific deployment options
wei_data_flow.from_source(
source=GitRepository(
url="<https://github.com/Alta-Fox/scripts.git>",
branch="prefectcicd",
credentials={
"username": "oauth2",
"access_token": Secret.load("github-access-token")
}
),
entrypoint="prefect/foxposure_data/wei_data_flow.py:wei_data_flow"
).deploy(
tags=["foxposure"],
name="wei-data-flow",
work_pool_name="my-managed-pool"
)
Here's the error:Nate
04/04/2024, 2:45 PMoauth2
the correct username here?
• can you try running a local worker prefect worker start --type process --pool test
» prefect worker start --type process --pool test
Worker 'ProcessWorker 9d1072ab-5b7d-40bf-a6c3-16c49f90b9c1' started!
and point your deployment at that so you can see what's going wrong when you try and start the deployment?Nate
04/04/2024, 2:45 PM--pool test
it will create that work pool on the fly for youMiles
04/04/2024, 2:48 PMMiles
04/04/2024, 3:23 PMNate
04/04/2024, 3:24 PM