Invalid...KeyError(f'No such transport: {transport}') Django Celery Valkey but only in production via gunicorn, django shell in prod pod does not reproduce #9836
Unanswered
timrichardson
asked this question in
Q&A
Replies: 1 comment
-
use celery 5.5.x |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
this was a deployment error. the CELERY_BROKER_URL was being forced to the environment in a kubernetes deployment to allow a flower pod to know how to connect. But this seems to have poisoned the environment for other parts of the deployment. We have removed this step in the deployment, and the problem is gone.
This is my putative issue (bug report). I saw the checklist requirement to discuss it first. Well done that checklist.
Also "there are no matching discussions".
the celery .... report output is here.
First, here is the tldr:
I have a django app running for a long time with no problems.
A change that I am having trouble bisecting has lead to this situation:
my_task.delay() called from a django View results in failure for the caller
with the stack trace ending:
it seems to be an empty string being passed in, not None. The was found by some monkey patching.
yet on the same pod, I can create a Django shell, import the task, then make the delay() call from the python shell, and it works. The worker picks it up. Likewise, periodic jobs from celery beat, running on the same pod, work. I have a docker compose stack in dev, and I can not reproduce this problem. it's valkey 8.1 acting as redis.
The front end is gunicorn running in a process pool with normal threads.
Recently I added channels to the project.
It is Django 5.11
Full stack trace is:
this is celery report
I am going nuts over this, and the Celery config is pretty stripped down now.
Expected Behavior
Actual Behavior
Beta Was this translation helpful? Give feedback.
All reactions