hey yall, observing that the modal worker image bu...
# prefect-cloud
p
hey yall, observing that the modal worker image build adds a
modal_requirements.txt
that downgrades fastapi + pydantic + prefect dependencies. If i try to override this default, it has starlette==0.32 hardcoded, which prevents installing any other versions.
n
hi @Pratham - can you show how you're observing that? and also your setup if possible
p
https://gist.github.com/PrathamSoni/9f6ef61b146bb44793f69c1c82178abf logs here. so you'll notice there's a
modal_requirements.txt
step which is after our image is unpacked which downgrades pydantic via fastapi. then there's a
python -m pip install prefect starlette==0.32.0.post1
which then forces prefect 2 via pydantic
as far as setup, it's pretty trivial, just copying our entire monorepo rn with a requirements.txt via prefect deploy cli
Hey @Nate, any chance you could take a call on this tomorrow? would be super helpful for getting us unblocked 😃
n
hi @Pratham if you need dedicated time, i'll point you here to book a demo. otherwise feel free to ask one off questions here in #CL09KU1K7
p
Thanks Nate, yeah if we could get clarity on this that would be great then. Think we do have some call scheduled for later today but will report back after that
unfortunately it got rescheduled @Nate have you had a chance to look into this
t
Hi @Pratham here are some diagrams from our call:
🙏 1
ECR and ACI are really similar
The push work pool works like this
p
🔥 thanks
m
Hi @Nate / @Taylor Curran — I’m running into the same issue re: the
python -m pip install prefect starlette==0.32.0.post1
preventing running prefect 3.0 with a custom image on modal. Did you get to the bottom of this? I can’t tell from the context in this thread if there’s a workaround. Thanks!!!
p
hey @Michael Savarese we gave up on it. think azure/aws are better supported on their end and should be easier to set up
m
Ahh, too bad. Thanks for letting me know. I set up AWS ECS in the meantime as a workaround but modal is a lot less overhead (when it works). What’s odd is that when using the default prefect image, modal pools seem to work just fine with prefect 3.0.
@Charles Liu Just FYI it looks like you might have run into the same issue described in this thread (just searching this slack)
c
Hey @Michael Savarese, yeah we moved to ACI since it was better supported. Thanks for the shout