diff --git a/src/main/java/org/bf2/arch/bot/StalledDiscussionFlow.java b/src/main/java/org/bf2/arch/bot/StalledDiscussionFlow.java index 800d685..737e4f8 100644 --- a/src/main/java/org/bf2/arch/bot/StalledDiscussionFlow.java +++ b/src/main/java/org/bf2/arch/bot/StalledDiscussionFlow.java @@ -78,7 +78,7 @@ void init(GitHubConfigFileProvider configFileProvider) throws IOException { } } - @Scheduled(every = "30m") + @Scheduled(every = "20m") void updateInstallationClientToken() { LOG.debug("Updating installation client to get new token (expires every 1h)"); client = service.getInstallationClient(installationId); @@ -104,7 +104,7 @@ void updateInstallationClientToken() { * If the PR has been opened for > Y hours then "stalled-discussion" */ // TODO similar method as this, but for OVERDUE - @Scheduled(every="60s") + @Scheduled(every="15m") public void checkForStalledDiscussions() throws IOException { if (!enabled) { LOG.debug("Ignoring scheduled trigger: disabled due to {}=false", ENABLE);