Skip to content

Commit

Permalink
Remove workerQueue unfinished tasks (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeixensperger authored and Li Wu committed Oct 8, 2019
1 parent e36b1f8 commit 48c25c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions splunk_eventgen/eventgen_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,7 @@ def check_done(self):
:return: if eventgen jobs are finished, return True else False
'''
return self.sampleQueue.empty() and self.sampleQueue.unfinished_tasks <= 0 and \
self.workerQueue.empty() and self.workerQueue.unfinished_tasks <= 0
return self.sampleQueue.empty() and self.sampleQueue.unfinished_tasks <= 0 and self.workerQueue.empty()

def kill_processes(self):
if self.args.multiprocess and hasattr(self, "pool"):
Expand Down

0 comments on commit 48c25c4

Please sign in to comment.