Skip to content

Commit

Permalink
Add HTTP server mode
Browse files Browse the repository at this point in the history
Starts a temporary HTTP server and waits for
request with seed to start job. After completing
the job, the server is shut down.
  • Loading branch information
emnoor-reef committed Nov 19, 2024
1 parent c4cb95c commit 20dcc6f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/compute_horde_prompt_solver/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ def execute_job():
def main():
args = parse_arguments()

# TODO: start the sub-process, and wait for model load to finish
# after the model setup is done, send a signal(queue?), so http server will start serving!
# start the flask server!!
# PROFIT!!
start_server_event = mp.Event()
seed_queue = mp.Queue()
process = mp.Process(target=_run_server, args=(start_server_event, seed_queue, args))
Expand Down

0 comments on commit 20dcc6f

Please sign in to comment.