Skip to content

Commit

Permalink
add sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Jan 3, 2025
1 parent 35fd352 commit dd9b145
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compute_horde_prompt_solver/prompt_solver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import abc
import time
import hashlib
import json
import multiprocessing as mp
Expand Down Expand Up @@ -214,5 +215,6 @@ def run(self):
self.process_file(input_file, sampling_params)
self.result_queue.put(self.response_hashes)
self.ready_to_terminate_event.wait(timeout=TIMEOUT)
time.sleep(2)
finally:
process.terminate()

0 comments on commit dd9b145

Please sign in to comment.