shu/fix totp script gen (#3423)

This commit is contained in:
Shuchang Zheng
2025-09-12 12:41:23 -07:00
committed by GitHub
parent 8df506660e
commit dde6837df8
4 changed files with 16 additions and 3 deletions

View File

@@ -39,6 +39,10 @@ class SkyvernContext:
def __str__(self) -> str:
return self.__repr__()
def pop_totp_code(self, task_id: str) -> None:
if task_id in self.totp_codes:
self.totp_codes.pop(task_id)
_context: ContextVar[SkyvernContext | None] = ContextVar(
"Global context",