Skip to content

Commit

Permalink
fix: pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Oct 18, 2023
1 parent 20986e1 commit aadd60e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/main/java/io/supertokens/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ private void init() throws IOException, StorageQueryException {
// starts DeleteExpiredAccessTokenSigningKeys cronjob if the access token signing keys can change
Cronjobs.addCronjob(this, DeleteExpiredAccessTokenSigningKeys.init(this, uniqueUserPoolIdsTenants));

// this is to ensure tenantInfos are in sync for the new cron job as well
MultitenancyHelper.getInstance(this).refreshCronjobs();

// creates password hashing pool
PasswordHashing.init(this);

Expand Down
3 changes: 0 additions & 3 deletions src/main/java/io/supertokens/cronjobs/Cronjobs.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ public static void addCronjob(Main main, CronTask task) {
instance.executor.scheduleWithFixedDelay(task, task.getInitialWaitTimeSeconds(),
task.getIntervalTimeSeconds(), TimeUnit.SECONDS);
instance.tasks.add(task);

// this is to ensure tenantInfos are in sync for the new cron job as well
MultitenancyHelper.getInstance(main).refreshCronjobs();
}
}
}
Expand Down

0 comments on commit aadd60e

Please sign in to comment.