Is Prefect Cloud ready for 3.0? I'm running into i...
# prefect-cloud
k
Is Prefect Cloud ready for 3.0? I'm running into issue after issue so it would be good to know so I can either downgrade or wait till it's ready.
I'm now build and deploy a docker image to a modal push work pool and I'm getting the following error
Copy code
Failed to generate job configuration: 1 validation error for ModalPushPoolJobConfiguration
image
  value is not a valid dict (type=type_error.dict)
I've searched for
ModalPushPoolJobConfiguration
and can't find any references, so this looks like it's a Cloud only configuration issue
j
Hey, could you share your work pool configuration?
While 3.0 is still a release candidate, it is fully supported by Prefect Cloud
k
Screenshot 2024-07-18 at 12.07.04 PM.png
j
could you share the work pool id?
k
cdcd2882-c0aa-4adb-8688-683d4591cfc0
j
It looks like you have an image set on the
Deployments.job_variables
which will override the image set on the work pool, if you remove that it should work
k
so I can't override the image in a deployment?
or what's the correct way to do that?
and thank you for looking into this so quickly
j
you can! Modal work's pool
image
parameter is special and needs to be an object (as opposed to a string)
you'd need to update it on the deployment to be:
Copy code
{"image": {"tag": "prefecthq/prefect:3.0.0rc10-python3.12"}
k
I see, thank you. Note that the deployment config was generated from the CLI
I just walked through the steps, selecting the modal workpool and choosing
y
to build a docker image
and if i'm using a private registry, how would those credentials be passed to modal?
j
You'd pass something like this:
Copy code
{
  "image": {
    "tag": "my-private-image-url",
    "secret": "my-modal-secret-name"
  }
}
where the value of "secret" points to the name of the secret you have setup with modal
k
👍
so I need to manually create the secret in modal
j
yes unfortunately for modal to know how to load the image over on their end, they need ownership of that secret
k
makes sense
would be amazing if the prefect CLI walked through these steps
j
100%, I definitely agree it would be nice to have walkthrough of it