Skip to content

Commit

Permalink
make names in max_num_pool_nodes abit less specific
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi committed Dec 13, 2024
1 parent d938268 commit ab82fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bajor/env_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def port():
return os.environ.get('PORT', '8000')

def max_num_pool_nodes(pool_id):
if(pool_id == 'training_1'):
if('training' in pool_id):
return os.environ.get('MAX_NODES_TRAINING', 2)
elif(pool_id == 'predictions_0'):
elif('predictions' in pool_id):
return os.environ.get('MAX_NODES_PREDICTION', 2)
else:
return 0
Expand Down

0 comments on commit ab82fb9

Please sign in to comment.