Skip to content

Commit

Permalink
launch triggering in separate thread
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaier committed Aug 19, 2019
1 parent 73c7f03 commit 9ee20bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sentinelsat/sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,9 @@ def download_all(self, products, directory_path='.', max_attempts=10, checksum=T
stop_event = threading.Event()
trigger_thread = threading.Thread(target=self._trigger_offline_retrieval_until_stop,
args=(offline_prods, stop_event, retrieval_scheduled, lta_retry_delay))
trigger_thread.run()

# launch in separate thread so that the as_completed loop is entered
trigger_thread.start()

for dl_task in concurrent.futures.as_completed(dl_tasks):
if not dl_task.exception() and dl_task.result():
Expand Down

0 comments on commit 9ee20bf

Please sign in to comment.