diff --git a/jobs.py b/jobs.py index f97a9a5..7c030d8 100644 --- a/jobs.py +++ b/jobs.py @@ -46,6 +46,8 @@ def wrapper(*args, **kwargs): return func(*args, **kwargs) except Exception as e: logging.error(f"Function {func.__name__} failed: {e}") + if i == 2: + raise time.sleep(5) return wrapper