Raed Shabbir
09/14/2021, 7:15 PMKevin Kho
09/14/2021, 7:17 PMprefect server start
and prefect agent local start
--expose
flagRaed Shabbir
09/14/2021, 7:19 PMprefect agent local start
fails with
RuntimeError: Error while contacting API at <https://api.prefect.io>
But why would the local agent have to connect to prefect-cloud? (note we are not using prefect-cloud and initially deployed via this guide
<https://www.youtube.com/watch?v=EwsMecjSYEU>
Kevin Kho
09/14/2021, 7:22 PMprefect backend server
Raed Shabbir
09/14/2021, 7:29 PMKevin Kho
09/14/2021, 7:30 PMRaed Shabbir
09/14/2021, 7:48 PM# comment out
# flow.executor = LocalExecutor()
#! For using kube
flow.executor = DaskExecutor()
# flow.run_config = KubernetesRun(
# image=<path to docker image>
# env={
# "PREFECT__CONTEXT__SECRETS__BITBUCKET_CLOUD_USERNAME": os.environ[
# "BITBUCKET_CLOUD_USERNAME"
# ],
# "PREFECT__CONTEXT__SECRETS__BITBUCKET_CLOUD_APP_PASSWORD": os.environ[
# "BITBUCKET_ACCESS_TOKEN"
# ],
# "PREFECT__LOGGING__LEVEL": "DEBUG",
# },
# image_pull_policy="Always",
# )
Kevin Kho
09/14/2021, 8:43 PMprefect backend server
. Flows that are registered will also be registered on the server