Hi guys, I'm experiencing a strange issue trying t...
# prefect-cloud
m
Hi guys, I'm experiencing a strange issue trying to move my scripts from being served locally to being deployed with github as a source for the code. Each run I trigger just crashes with the container throwing error code 1. I'll paste it below. Some more context: • The scripts work perfectly fine when I serve them locally • Here's the code I'm using for deploying it:
Copy code
if __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:
n
hmm i suspect this is related to pulling from your private repo somehow • is
oauth2
the correct username here? • can you try running a local worker
prefect worker start --type process --pool test
Copy code
» 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?
btw just by passing
--pool test
it will create that work pool on the fly for you
m
Thanks! Let me try this out
@Nate I replaced the username and ran it in a test pool and it worked just fine - then I switched it back to the main pool and re-ran the files and theyre failing with no error trace
n
hmm - reaching out via DM for some account details
1