Skip to content

Commit

Permalink
add stuff for debugging multithreaded test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Jul 14, 2023
1 parent 6532fab commit c36a03d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SimulationService.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ end

#-----------------------------------------------------------------------------# start!
function start!(; host=HOST, port=PORT, kw...)
@info "starting server on $host:$port. nthreads=$(Threads.nthreads())"
ENABLE_TDS || @warn "TDS is disabled. Some features will not work."
stop!() # Stop server if it's already running
server_url[] = "http://$host:$port"
JobSchedulers.scheduler_start()
JobSchedulers.set_scheduler(max_cpu=0.5, max_mem=0.5, update_second=0.05, max_job=5000)
JobSchedulers.set_scheduler(max_cpu=0.6, max_mem=0.5, update_second=0.05, max_job=5000)
Oxygen.resetstate()
Oxygen.@get "/" health
Oxygen.@get "/status/{id}" job_status
Expand Down

0 comments on commit c36a03d

Please sign in to comment.