mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-03 09:58:11 +08:00
Fix not picking up result from falsy result (#107)
* Fix not picking up result from falsy result * add test and docs * typo
This commit is contained in:
+1
-1
@@ -148,7 +148,7 @@ def result(task_id, wait=0, cached=Conf.CACHED):
|
||||
start = time()
|
||||
while True:
|
||||
r = Task.get_result(task_id)
|
||||
if r:
|
||||
if r is not None:
|
||||
return r
|
||||
if (time() - start) * 1000 >= wait >= 0:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user