Skip to content

Commit 563315b

Browse files
author
Anton Khodak
committed
Remove lock
* it doesn't really affect anything
1 parent 7477549 commit 563315b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cwltool/executors.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ def run_jobs(self,
117117
class MultithreadedJobExecutor(JobExecutor):
118118
def __init__(self):
119119
super(MultithreadedJobExecutor, self).__init__()
120-
self.fetch_iter_lock = threading.Lock()
121120
self.threads = set()
122121
self.exceptions = []
123122

@@ -132,18 +131,12 @@ def runner():
132131

133132
self.threads.remove(thread)
134133

135-
if self.fetch_iter_lock.locked():
136-
self.fetch_iter_lock.release()
137-
138134
thread = threading.Thread(target=runner)
139135
thread.daemon = True
140136
self.threads.add(thread)
141137
thread.start()
142138

143139
def wait_for_next_completion(self):
144-
self.fetch_iter_lock.acquire()
145-
self.fetch_iter_lock.acquire()
146-
self.fetch_iter_lock.release()
147140
if self.exceptions:
148141
raise self.exceptions[0]
149142

0 commit comments

Comments
 (0)