Giter VIP home page Giter VIP logo

Comments (15)

czue avatar czue commented on September 20, 2024

That's strange I've never had any issues with production deployments. Are you getting any errors in the celery, django, or JS logs/console? Is the task actually running?

from celery-progress.

sindhujit avatar sindhujit commented on September 20, 2024

The celery task gets executed fine and I see it getting completed and the response returned as well. However, the task-id URL is not called continuously and the progress bar does not get updated while the task is executing. I have read online it seems it is an nginx issue where it is not able to get the continuous queries about progress from the front-end. Some people have also suggested installing nginx upload progress module, but not sure if going in a different direction is needed at this point.

from celery-progress.

czue avatar czue commented on September 20, 2024

The library just uses polling to get the status, so it should not be dependent on the web server unless something strange like throttling is happening.

In the browser are you seeing the requests to the progress status URL getting made? And can you confirm there aren't any javascript errors on the page?

from celery-progress.

sindhujit avatar sindhujit commented on September 20, 2024

Capture
It seems I am getting an error where it cannot locate /celery-progress. I think apart from defining in urls.py, it should be defined in my nginx.conf file as well inside the location attribute.

from celery-progress.

czue avatar czue commented on September 20, 2024

Yeah, I would guess that it's related to how you're serving staticfiles. I would review these docs and make sure you have a setup that is working: https://docs.djangoproject.com/en/2.2/howto/static-files/deployment/

Edit: this is wrong.

from celery-progress.

czue avatar czue commented on September 20, 2024

oh wait, sorry I misread the error, ignore the staticfiles thing.

I'm not sure how your setup is working but agreed that either nginx can't find the URL path or django can't find the task (it could be either one).

from celery-progress.

sindhujit avatar sindhujit commented on September 20, 2024

You were right initially. I forgot the way STATIC files are deployed in our E2 and E3 envs are a bit different :)

from celery-progress.

czue avatar czue commented on September 20, 2024

great!

from celery-progress.

fauzanebd avatar fauzanebd commented on September 20, 2024

i have same issue while deploying my flask project on ec2. how do you solve this?

from celery-progress.

czue avatar czue commented on September 20, 2024

Could you check these steps? #15 (comment)

from celery-progress.

sindhujit1 avatar sindhujit1 commented on September 20, 2024

Again I am facing the same issue. But now I cannot remember the fix. I don't think its a STATIC folder issue as I did not change anything related to that .

from celery-progress.

sindhujit1 avatar sindhujit1 commented on September 20, 2024

image

from celery-progress.

czue avatar czue commented on September 20, 2024

hmm, i would check server logs for that URL and see why it's 404ing.

from celery-progress.

sindhujit1 avatar sindhujit1 commented on September 20, 2024

These are the logs from nginx access logs:

10.5.64.7 - - [11/Mar/2024:22:50:01 -0700] "GET /celery_progress/9134313c-4c9d-4fde-872e-27bb33a4577a/ HTTP/1.1" 404 555 "https://netadc-qa.aexp.com/netadc3/networkinventory/views/datacenternetworkinventory/oobSubnet/LAB/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" "x.x.x.x"

Theres no issues in our E1. But in E2 we use uwsgi+nginx and the job gets stuck at "Waiting for progress to start..". I fixed this before, but from yesterday this issue started happening again. Not sure what I am doing wrong. The static directory seems to be fine as all my other static files are loading properly.

from celery-progress.

czue avatar czue commented on September 20, 2024

it doesn't seem like a static files issue. it seems like the /celery_progress/9134313c-4c9d-4fde-872e-27bb33a4577a/ is 404ing. could be because the url configuration is wrong, task doesn't exist, or the web app and celery app are using different backends. maybe other reasons

from celery-progress.

Related Issues (20)

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.