File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -197,9 +197,11 @@ public EppoClient buildAndInit() {
197
197
pollingIntervalMs ,
198
198
pollingIntervalMs / DEFAULT_JITTER_INTERVAL_RATIO );
199
199
200
+ fetchConfigurationsTask .scheduleNext ();
201
+
200
202
// Kick off the first fetch, respecting graceful mode.
201
203
try {
202
- fetchConfigurationsTask . run ();
204
+ instance . loadConfiguration ();
203
205
} catch (RuntimeException e ) {
204
206
log .error ("Encountered Exception while loading configuration" , e );
205
207
if (!isGracefulMode ) {
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ public void run() {
28
28
} catch (Exception e ) {
29
29
log .error ("[Eppo SDK] Error fetching experiment configuration" , e );
30
30
}
31
+ scheduleNext ();
32
+ }
33
+
34
+ public void scheduleNext () {
31
35
32
36
long delay = this .intervalInMillis - (long ) (Math .random () * this .jitterInMillis );
33
37
FetchConfigurationsTask nextTask =
Original file line number Diff line number Diff line change 4
4
import static cloud .eppo .helpers .AssignmentTestCase .runTestCase ;
5
5
import static cloud .eppo .helpers .BanditTestCase .parseBanditTestCaseFile ;
6
6
import static cloud .eppo .helpers .BanditTestCase .runBanditTestCase ;
7
- import static cloud .eppo .helpers .TestUtils .mockHttpError ;
8
7
import static org .junit .jupiter .api .Assertions .*;
9
8
import static org .junit .jupiter .api .Assertions .assertThrows ;
10
9
import static org .mockito .Mockito .*;
You can’t perform that action at this time.
0 commit comments