Skip to content

Commit

Permalink
Merge pull request #9 from chnpmy/master
Browse files Browse the repository at this point in the history
fix: check pending tasks correctly, fix #8
  • Loading branch information
cr0hn committed Dec 27, 2017
2 parents 53214a6 + a808557 commit 1a3ca48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiotasks/tasks/redis.py
Expand Up @@ -135,7 +135,7 @@ def __init__(self,

async def has_pending_tasks(self):
return bool(self.task_running_tasks) \
or not bool(await self._redis_poller.llen(self.task_list_name))
or bool(await self._redis_poller.llen(self.task_list_name))

def stop_delayers(self):
self._redis_consumer.close()
Expand Down

0 comments on commit 1a3ca48

Please sign in to comment.