-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tick
fails on deserialized Workflow
#7
Comments
Celery result backend has to be enabled for the whole machinery to work. In our prod environment we're using mysql. At first glance it looks like you don't have result backend configured for your celery application. |
Oh no, i have a Redis backend configured and running. The thing is, if i want to get a status from an id, i need to do something like:
As per the code i saw in |
Hmm that's interesting. Can I have a piece of code to reproduce this issue? |
Does your celery worker which handles
|
I'm trying to isolate a piece of code, and that is non trivial. My app that handle the workflow processor is a flask application, and it is not started as a celery worker. When creating my flask app, i
And the
BTW I managed to achieve what i was trying to do by using signals, instead of serialisation/deserialisation of the workflow object, so i don't have a probleme anymore. |
I'm closing this ticket as this is no longer an issue for the author and I'm not able to reproduce the problem. |
If i start a workflow, serialize it to json, and then recreate my original
Workflow
, thetick
function will raise an exception.This is the stack trace :
The root cause is that
inspect.get_task_state
will try to instanciateAsyncResult
without specifying their result backend.I do not know how that works normally. I will keep on looking in my application code, to make sure that the issue is not on my side.
The text was updated successfully, but these errors were encountered: