Morning Everyone, Hoping someone can give me some ...
# ask-community
r
Morning Everyone, Hoping someone can give me some guidance. I am trying to register my work flow with a on-prem prefect server running in Kubernetes. But for some reason I can't get it to pick up the PREFECT_API_URL,PREFECT_API_KEY or PREFECT_WORK_POOL_NAME env values. This is my register code:
from prefect import serve
from flows import dispatcher
if __name__ == "__main__":
# Only use for localhost testing
serve(<http://dispatcher.dispatch.to|dispatcher.dispatch.to>_deployment("dispatch"))
I get this error when it runs:
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<http://ephemeral-prefect/api/work_pools/etl-application-pool>'             │
│ Response: {'detail': 'Work pool "etl-application-pool" not found.'}
This code runs once in a docker container - any hints anyone?