I am trying to figure out how to change the result displayed in Django's admin task section so that I can see when a condition is hit within a task. I do not want the task to fail, I want a new state that I can see and query. When I try to update_state(state="CUSTOM"), the task completes without error (which is good) but doesn't affect the state displayed in django admin.
I have had no luck finding the example referenced in the documentation pertaining to custom states and have read numerous blogs and posts and sifted through different parts of the documentation to no avail - and have even tried the unreponsive irc chat room so I am out of ideas.
Any help or ideas would be much appreciated.
According to the celery official docs,
The function requires other parameters, 'current' and 'total'. Your code example does not show those, it is possible you need to add them.
answered 25 Mar '11, 14:33
See answer posted in thread here:
answered 28 Mar '11, 07:29