mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 07:18:13 +08:00
returns the size of the chain or iter on append
This commit is contained in:
@@ -449,6 +449,7 @@ class Iter(object):
|
|||||||
self.args.append(args)
|
self.args.append(args)
|
||||||
if self.started:
|
if self.started:
|
||||||
self.started = False
|
self.started = False
|
||||||
|
return self.length()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""
|
"""
|
||||||
@@ -511,6 +512,7 @@ class Chain(object):
|
|||||||
if self.started:
|
if self.started:
|
||||||
delete_group(self.group)
|
delete_group(self.group)
|
||||||
self.started = False
|
self.started = False
|
||||||
|
return self.length()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user