Skip to content

Commit

Permalink
fix: fix limit to 2 try-me deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Aug 26, 2024
1 parent bc13658 commit 0659d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai4papi/routers/v1/try_me/nomad.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def create_deployment(
owner=auth_info['id'],
prefix="try",
)
if len(jobs) > 2:
if len(jobs) >= 2:
raise HTTPException(
status_code=503,
detail="Sorry, but you seem to be currently running two `Try-me` environments already." \
detail="Sorry, but you seem to be currently running two `Try-me` environments already. " \
"Before launching a new one, you will need to wait till one of your " \
"existing environments gets automatically deleted (ca. 10 min)."
)
Expand Down

0 comments on commit 0659d54

Please sign in to comment.