Spaces:
Running
Running
admin
commited on
Commit
·
7d041c5
1
Parent(s):
c67072f
add timestamp for trigger
Browse files- activate.py +5 -1
activate.py
CHANGED
@@ -6,6 +6,7 @@ from tqdm import tqdm
|
|
6 |
from huggingface_hub import HfApi
|
7 |
from smtp import send_email
|
8 |
from config import *
|
|
|
9 |
|
10 |
|
11 |
def get_space_status(repo_id: str):
|
@@ -146,7 +147,10 @@ def trigger(users=USERS):
|
|
146 |
threading.Thread(target=activate_studio, args=(studio,), daemon=True).start()
|
147 |
time.sleep(DELAY)
|
148 |
|
149 |
-
print(
|
|
|
|
|
|
|
150 |
content = ""
|
151 |
for failure in failures:
|
152 |
errepo: str = failure
|
|
|
6 |
from huggingface_hub import HfApi
|
7 |
from smtp import send_email
|
8 |
from config import *
|
9 |
+
from times import *
|
10 |
|
11 |
|
12 |
def get_space_status(repo_id: str):
|
|
|
147 |
threading.Thread(target=activate_studio, args=(studio,), daemon=True).start()
|
148 |
time.sleep(DELAY)
|
149 |
|
150 |
+
print(
|
151 |
+
"\n".join(spaces + studios)
|
152 |
+
+ f"\n[{fix_datetime(datetime.now())}] Activation complete!"
|
153 |
+
)
|
154 |
content = ""
|
155 |
for failure in failures:
|
156 |
errepo: str = failure
|