admin commited on
Commit
34c3eb6
·
1 Parent(s): 6ce8f23

recover stage check

Browse files
Files changed (1) hide show
  1. modules/activate.py +1 -3
modules/activate.py CHANGED
@@ -21,9 +21,7 @@ def get_space_status(repo_id: str):
21
  if response:
22
  for repo in response:
23
  if repo["id"] == repo_id:
24
- stage = repo["runtime"]["stage"]
25
- if stage == "SLEEPING" or "RUNNING" in stage:
26
- return stage
27
 
28
  return "ERROR"
29
 
 
21
  if response:
22
  for repo in response:
23
  if repo["id"] == repo_id:
24
+ return repo["runtime"]["stage"]
 
 
25
 
26
  return "ERROR"
27