Skip to content

Commit

Permalink
do not add empty command chains into the queue
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-schick committed May 19, 2022
1 parent f7c0d40 commit 7bde9b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mara_pipelines/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ def run(self):
succeeded = True
try:
for commands in self.task.feed_workers():
if not commands:
# skip empty command chains
continue
self._command_queue_put(commands)
except Exception as e:
logger.log(message=traceback.format_exc(), format=logger.Format.VERBATIM, is_error=True)
Expand Down

0 comments on commit 7bde9b5

Please sign in to comment.