mher/flower — pull request #147 by NotSqrt (2013-11-15 16:57:56+00:00)
Title: Proposition : Expose custom state of the task in the API

In my projects, I use custom states:
http://docs.celeryproject.org/en/latest/userguide/tasks.html#custom-states

A ``metadata`` dict can be provided, and is stored in AsyncResult.result, just like actual results.

This commit exposes the custom state as a ``meta`` key.

To filter custom states from the actual result, there does not seem to be another way than checking that the result is not ``ready()``. The state could be anything, since it can be changed by the user.

I tried to do the same for the ``Task`` view, but it appears that the ``result`` is not kept updated....

Thanks for the awesome work !