Skip to content

Commit

Permalink
Go easier on the GH API
Browse files Browse the repository at this point in the history
  • Loading branch information
grdryn committed Apr 18, 2023
1 parent 712eb12 commit 3ddbed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/bf2/arch/bot/StalledDiscussionFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 3ddbed9

Please sign in to comment.