mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 21:30:40 +08:00
Configurable polling interval
This commit is contained in:
@ -57,7 +57,7 @@ def run():
|
|||||||
|
|
||||||
# Run the check every minute
|
# Run the check every minute
|
||||||
while True:
|
while True:
|
||||||
# time.sleep(60)
|
time.sleep(settings.get("GITLAB.POLLING_INTERVAL_SECONDS"))
|
||||||
new_comments = check_comments()
|
new_comments = check_comments()
|
||||||
if new_comments:
|
if new_comments:
|
||||||
handle_new_comments(new_comments)
|
handle_new_comments(new_comments)
|
||||||
|
@ -23,3 +23,6 @@ projects_to_monitor = [47494341]
|
|||||||
|
|
||||||
# Polling trigger
|
# Polling trigger
|
||||||
magic_word = "MagicRound"
|
magic_word = "MagicRound"
|
||||||
|
|
||||||
|
# Polling interval
|
||||||
|
polling_interval_seconds = 60
|
Reference in New Issue
Block a user