Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Groups can't have 1 or 0 tasks #1219

sylvinus opened this Issue Mar 2, 2013 · 0 comments


None yet
2 participants

sylvinus commented Mar 2, 2013

I am creating groups dynamically, that can sometimes have only 1 task, or even 0.

With 1 task, I get the following when doing get():

File "***/python2.7/site-packages/celery/canvas.py", line 396, in __call__
    options, map(Signature.clone, self.tasks), partial_args,
TypeError: unbound method clone() must be called with Signature instance as first argument (got str instance instead)

With 0 tasks, get() raises this:

File "***/site-packages/celery/result.py", line 440, in get
    return (self.join_native if self.supports_native_join else self.join)(
  File "****/python2.7/site-packages/celery/result.py", line 552, in supports_native_join
    return self.results[0].supports_native_join

The expected behaviour of get() on groups of 1 should be to return a list with only this tasks's result, and an empty list when 0 tasks.


@ask ask closed this in 2914f46 Mar 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment