Check if all task are complete on fail task

This commit is contained in:
shortcutme 2019-12-21 02:59:04 +01:00
parent c01245a4e0
commit 2c3f1ba7ad
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -579,4 +579,4 @@ class WorkerManager(object):
self.site.onFileFail(task["inner_path"])
task["evt"].set(False)
if not self.tasks:
self.started_task_num = 0
self.site.greenlet_manager.spawn(self.checkComplete)