Code Monkey home page Code Monkey logo

Comments (7)

csouflis avatar csouflis commented on June 3, 2024 2

Hey guys I solved the issue by separating out the RUN commands in the celeryworker.dockerfile, like this:

RUN python -m pip install --no-cache-dir --upgrade pip "pipx==$PIPX_VERSION"
RUN pipx install "hatch==$HATCH_VERSION"
RUN hatch env prune && hatch env create production
RUN chmod +x /app/worker-start.sh

from full-stack-fastapi-mongodb.

Jibola avatar Jibola commented on June 3, 2024

Hey @aidancahill, thanks for your patience on this issue.

To start, could you share if you have the file /app/worker-start.sh in your backend directory? In your generated app the pathname should look like this {project_name}/backend/app/worker-start.sh? If not that may be the root issue. It may have been accidentally deleted or removed. Let me know if that helps. If not, we can follow up with this in a formal JIRA ticket.

from full-stack-fastapi-mongodb.

aidancahill avatar aidancahill commented on June 3, 2024

Hey @Jibola,

Thanks for taking the time,

Yes in the directory {project_name}/backend/app/, I have a worker-start.sh. I was pretty sparse with the amount of context I provided in the original post, happy to provide any additional generated files to replicate the bug.

(The content of worker-start.sh)

#! /usr/bin/env bash
set -e

hatch run python /app/app/celeryworker_pre_start.py
hatch run celery -A app.worker worker -l info -Q main-queue -c 1

from full-stack-fastapi-mongodb.

shouari avatar shouari commented on June 3, 2024

I have the same issue.

from full-stack-fastapi-mongodb.

csouflis avatar csouflis commented on June 3, 2024

I am also getting this issue.

from full-stack-fastapi-mongodb.

blink1073 avatar blink1073 commented on June 3, 2024

Thanks @csouflis! I opened https://jira.mongodb.org/browse/PYTHON-4351 to track this bug.

from full-stack-fastapi-mongodb.

blink1073 avatar blink1073 commented on June 3, 2024

I applied the change in #38.

from full-stack-fastapi-mongodb.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.