This commit is contained in:
2025-03-24 22:14:39 -04:00
parent 367a3d9523
commit 03af4f8077
8 changed files with 983 additions and 8 deletions

9
menu/task.py Normal file
View File

@ -0,0 +1,9 @@
import random
import time
def risky_task() -> str:
if random.random() > 0.25:
time.sleep(1)
raise ValueError("Random failure occurred")
return "Task succeeded!"