Skip to content

Commit

Permalink
Merge pull request #58 from zooniverse/zoobot-upgrade-testing
Browse files Browse the repository at this point in the history
make names in max_num_pool_nodes abit less specific
  • Loading branch information
Tooyosi authored Dec 13, 2024
2 parents d938268 + ab82fb9 commit c17d99c
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 c17d99c

Please sign in to comment.