Method: Cnvrg::Helpers#parallel_threads
- Defined in:
- lib/cnvrg/helpers.rb
#parallel_threads ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/cnvrg/helpers.rb', line 5 def parallel_threads() threads = ENV["CNVRG_PARALLEL_THREADS"].to_i ### if empty, default will be 15 threads threads = threads > 0 ? threads : 15 ### set max threads to be 100k [threads, 100000].min end |