You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My dash app uses background callbacks with Celery and Redis for long-running requests. It's being tested in Dev container.
Issue
I'm getting 204s intermittently when triggering the background callback. Sometimes the callback and caching work. Sometimes the dash/_dash-update-component endpoint just returns 204, and nothing on the frontend gets updated.
Below is the gunicorn log
Issue resolved.
The root cause is that the same Celery queue is used by multiple versions of running dash instances, which causes a task submitted by a producer to be consumed by a worker of a different version.
A better practice is to use different queues for different versions of workers.
My dash app uses background callbacks with Celery and Redis for long-running requests. It's being tested in Dev container.
Issue
I'm getting 204s intermittently when triggering the background callback. Sometimes the callback and caching work. Sometimes the dash/_dash-update-component endpoint just returns 204, and nothing on the frontend gets updated.
Below is the gunicorn log
Basic code structure
main.py
run_server.sh
callbacks.py
I've tried everything I can to debug, but it doesn't work. So, I need your help here. Much appreciate.
The text was updated successfully, but these errors were encountered: