Comments (15)
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.
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.
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.
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.
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.
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.
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.
great!
from celery-progress.
i have same issue while deploying my flask project on ec2. how do you solve this?
from celery-progress.
Could you check these steps? #15 (comment)
from celery-progress.
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.
from celery-progress.
hmm, i would check server logs for that URL and see why it's 404ing.
from celery-progress.
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.
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)
- Using master branch leads to Javascript TypeError HOT 1
- DOM only updating last element of the loop while diplaying progress HOT 2
- django.conf.urls.url() deprecated in Django 3+, removed in 4.0 HOT 3
- using websockets with channels_redis 4.0.0+ leads to RuntimeError("Event loop is closed") HOT 2
- NoReverseMatch at /status 'celery_progress' is not a registered namespace HOT 2
- celery Progress on file upload HOT 1
- Get the actual value when onProgress HOT 4
- Update two bars relatively to two workers HOT 6
- Task_id must not be empty. Got None instead HOT 7
- Intermittent Issue with Starting of Celery Task HOT 9
- Introduce changelog HOT 3
- get_progress endpoint allows retrieval of arbitrary tasks HOT 7
- How would one use this progress bar when a task is wrapped in a Django transaction.on_commit? HOT 4
- Create Sdist HOT 9
- Handling a FileResponse HOT 3
- Config Mensages HOT 1
- 'celery_progress' is not a registered namespace
- ajax request using htmx HOT 1
- This could benefit from documantation for how to use it with chord or group based workflows. HOT 4
- Legacy install method will be deprecated soon HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celery-progress.