diff --git a/services/webhook_handler.py b/services/webhook_handler.py index 97c98cec..497aec9e 100644 --- a/services/webhook_handler.py +++ b/services/webhook_handler.py @@ -1,5 +1,6 @@ # Standard imports import re +from time import sleep from typing import Any # Local imports @@ -53,6 +54,9 @@ async def handle_installation_created(payload: GitHubInstallationPayload) -> Non email=user_email, ) + # Wait for 120 seconds + sleep(120) + # Add issue templates to the repositories for i, full_name in enumerate(iterable=repo_full_names, start=1): print(f"\nAdding issue templates ({i}/{len(repo_full_names)}): {full_name}")