Skip to content
Snippets Groups Projects
Commit 76ef7758 authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Iss #152 - Add a minute delay to installation scan to resolve race con

There seems to be a race condition present in the startup of how things
are loaded/registered. An easy fix for this is to simply put a delay.
Should this crop up again, we could add a more expensive fix that would
check if the provider is registered, and if not add it on the fly.
parent e036cddf
No related branches found
No related tags found
1 merge request!168Iss #152 - Add a minute delay to installation scan to resolve race con
......@@ -81,7 +81,7 @@ public class GithubInstallationUpdateTask {
* Every 1h, this method will query Github for installations for the currently configured application. These
* installations will be translated into database entries for a persistent cache to be loaded on request.
*/
@Scheduled(every = "1h")
@Scheduled(every = "1h", delay = 1)
@ActivateRequestContext
public void revalidate() {
// if not enabled, don't process any potentially OOD records
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment