Limpa dependências versionadas e reconstrói catálogo com 20 projetos
Deploy / Deploy (push) Successful in 29s
Deploy / Deploy (push) Successful in 29s
This commit is contained in:
1 parent
95810ce994
commit
57af93ea60
319 files changed
+155566
-1328045
No files matched your search
@@ -0,0 +1,13 @@
|
||||
"""Configuracao compartilhada do ETL; caminhos relativos ao codigo em uso."""
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
REPO_ROOT = Path(os.environ.get("MMPSEARCH_REPO_ROOT", Path(__file__).resolve().parents[1])).resolve()
|
||||
DATA_ROOT = Path(os.environ.get("MMPSEARCH_DATA_ROOT", "/var/www/html/trens/src_mmpSearch")).resolve()
|
||||
MODELS_ROOT = Path(os.environ.get("MMPSEARCH_MODELS_ROOT", REPO_ROOT / "scripts" / "classificacao")).resolve()
|
||||
|
||||
def worker_count():
|
||||
requested = int(os.environ.get("MMPSEARCH_WORKERS", "2"))
|
||||
if requested < 1:
|
||||
raise ValueError("MMPSEARCH_WORKERS deve ser positivo.")
|
||||
return min(requested, max(1, (os.cpu_count() or 1) - 1))
|
||||
Reference in new issue
Block a user