Configurable polling interval

This commit is contained in:
salberts
2023-07-08 10:26:41 +03:00
parent 75167c2700
commit d4adcb3c22
2 changed files with 5 additions and 2 deletions

View File

@ -57,7 +57,7 @@ def run():
# Run the check every minute
while True:
# time.sleep(60)
time.sleep(settings.get("GITLAB.POLLING_INTERVAL_SECONDS"))
new_comments = check_comments()
if new_comments:
handle_new_comments(new_comments)

View File

@ -22,4 +22,7 @@ gitlab_url = "https://gitlab.com"
projects_to_monitor = [47494341]
# Polling trigger
magic_word = "MagicRound"
magic_word = "MagicRound"
# Polling interval
polling_interval_seconds = 60