Spaces:
Paused
Paused
Rename api/vince_pool_manager.py to api/Vince/vince_aduc_manager.py
Browse files
api/{vince_pool_manager.py → Vince/vince_aduc_manager.py}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# FILE: api/
|
| 2 |
# DESCRIPTION: Singleton manager for a pool of VINCIE workers, integrated with a central GPU manager.
|
| 3 |
|
| 4 |
import os
|
|
@@ -124,7 +124,7 @@ class VinceWorker:
|
|
| 124 |
|
| 125 |
|
| 126 |
# --- Classe Pool Manager (A Orquestradora Singleton) ---
|
| 127 |
-
class
|
| 128 |
_instance = None
|
| 129 |
_lock = threading.Lock()
|
| 130 |
|
|
@@ -207,8 +207,8 @@ class VincePoolManager:
|
|
| 207 |
# se o VINCIE não puder ser inicializado por algum motivo.
|
| 208 |
try:
|
| 209 |
output_root_path = os.getenv("OUTPUT_ROOT", "/app/outputs")
|
| 210 |
-
|
| 211 |
except Exception as e:
|
| 212 |
print(f"ERRO CRÍTICO ao inicializar o VincePoolManager: {e}", file=sys.stderr)
|
| 213 |
traceback.print_exc()
|
| 214 |
-
|
|
|
|
| 1 |
+
# FILE: api/vince_aduc_manager.py
|
| 2 |
# DESCRIPTION: Singleton manager for a pool of VINCIE workers, integrated with a central GPU manager.
|
| 3 |
|
| 4 |
import os
|
|
|
|
| 124 |
|
| 125 |
|
| 126 |
# --- Classe Pool Manager (A Orquestradora Singleton) ---
|
| 127 |
+
class VinceAducManager:
|
| 128 |
_instance = None
|
| 129 |
_lock = threading.Lock()
|
| 130 |
|
|
|
|
| 207 |
# se o VINCIE não puder ser inicializado por algum motivo.
|
| 208 |
try:
|
| 209 |
output_root_path = os.getenv("OUTPUT_ROOT", "/app/outputs")
|
| 210 |
+
vince_aduc_manager_singleton = VinceAducManager(output_root=output_root_path)
|
| 211 |
except Exception as e:
|
| 212 |
print(f"ERRO CRÍTICO ao inicializar o VincePoolManager: {e}", file=sys.stderr)
|
| 213 |
traceback.print_exc()
|
| 214 |
+
vince_aduc_manager_singleton = None
|