Record worker browser sessions

This commit is contained in:
2026-08-02 23:23:23 +03:30
parent 601b8ec69e
commit 66c8c19e0c
11 changed files with 384 additions and 14 deletions
+4
View File
@@ -18,6 +18,10 @@ class Config:
headless: bool = os.getenv("HEADLESS", "true").lower() == "true"
chrome_binary: str | None = os.getenv("CHROME_BINARY")
chromedriver_path: str = os.getenv("CHROMEDRIVER_PATH", "drivers/chromedriver")
record_sessions: bool = os.getenv("RECORD_SESSIONS", "false").lower() == "true"
recording_fps: int = int(os.getenv("RECORDING_FPS", "12"))
recording_max_files: int = int(os.getenv("RECORDING_MAX_FILES", "3"))
recordings_dir: str = os.getenv("RECORDINGS_DIR", "recordings")
# Scenario 1 — SMS-OTP: list of phone numbers (one per line in env or comma-separated)
phone_numbers: list[str] = field(default_factory=list)