a year ago
issue
36 Replies
a year ago
0d433bdd-6874-4b2f-837b-2015b5e6e29f
a year ago
its super important to fix as its dropping production due to this
a year ago

a year ago
using metal if that matters
a year ago
perhaps there is a thing to never drop network requests
a year ago
some kind of plan or smth
a year ago
this mby?

a year ago
can you explain what you mean by dropping requests and tell us why you think its a platform fault instead of a fault of your app?
a year ago
yea essentially some requests stall out
and some requests don't get delivered
a year ago
when there is more traffic
a year ago
im testing things out with google cloud run now
a year ago
what service?
a year ago
to test the theory that its railway issue
a year ago

a year ago
its this one
a year ago
i remember i had similar issue mby year ago
a year ago
and there was a setting
a year ago
to scale network or smth
a year ago
but can't find it now in ui
a year ago
what is your start command
a year ago

a year ago
is the dockerfile
a year ago
FROM python:3.12-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
COPY . /app
WORKDIR /app
RUN uv sync --frozen --no-cache
CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--host", "0.0.0.0", "--port", "80"]a year ago
if you mean that
a year ago
looks like that is starting a development server
a year ago
oh so its starts dev server in prod?
a year ago
im so bad at dockerfiles fml
a year ago
fastapi should be ran with unvicorn
a year ago
ok let me see how to change
a year ago
FROM python:3.12-slim
WORKDIR /app
COPY . /app
# Install dependencies directly without virtual environment
RUN pip install --no-cache-dir fastapi uvicorn[standard] requests pydantic-settings python-dotenv supabase
EXPOSE 8080
CMD uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8080}a year ago
perhaps this is better
a year ago
so going forward lets refrain from pointing fingers at the platform unless a team member says it an issue with the platform
a year ago
oh yea i don't blame railway, i just thought it was on them
a year ago
but yea will just refrain from this
a year ago
and list the dockerfile too
a year ago
!s
Status changed to Solved brody • 12 months ago