Skip to content

Commit

Permalink
[AIRFLOW-4311] Remove sleep in localexecutor (apache#5096)
Browse files Browse the repository at this point in the history
  • Loading branch information
BasPH authored and Chad Henderson committed Apr 16, 2019
1 parent 48c0d3b commit bb4a9eb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions airflow/executors/local_executor.py
Expand Up @@ -46,7 +46,6 @@

import multiprocessing
import subprocess
import time

from builtins import range

Expand Down Expand Up @@ -94,7 +93,6 @@ def execute_work(self, key, command):

def run(self):
self.execute_work(self.key, self.command)
time.sleep(1)


class QueuedLocalWorker(LocalWorker):
Expand All @@ -116,7 +114,6 @@ def run(self):
break
self.execute_work(key, command)
self.task_queue.task_done()
time.sleep(1)


class LocalExecutor(BaseExecutor):
Expand Down Expand Up @@ -164,7 +161,6 @@ def sync(self):
def end(self):
while self.executor.workers_active > 0:
self.executor.sync()
time.sleep(0.5)

class _LimitedParallelism(object):
"""Implements LocalExecutor with limited parallelism using a task queue to
Expand Down

0 comments on commit bb4a9eb

Please sign in to comment.