mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 09:11:02 +00:00
Speeding up loading of races by removing fix for bug 1345 as the problem described there no longer holds as races no longer are put in state FINISHED automagically
This commit is contained in:
1 parent
2841dec7d7
commit
a5b5c2e40f
1 file changed
+4
-2
+4
-2
@@ -322,9 +322,11 @@ public class TracTracRaceTrackerImpl extends AbstractRaceTrackerImpl implements
|
||||
}
|
||||
};
|
||||
// now run the command once immediately and synchronously; see also bug 1345
|
||||
command.run();
|
||||
// as we are no longer automatically putting races in state FINISHED we do not
|
||||
// have to execute the scheduler synchronously anymore. This speeds up loading of races a lot.
|
||||
|
||||
// then schedule for periodic execution in background
|
||||
ScheduledFuture<?> task = scheduler.scheduleWithFixedDelay(command, /* initialDelay */ 30000, /* delay */ 15000, /* unit */ TimeUnit.MILLISECONDS);
|
||||
ScheduledFuture<?> task = scheduler.scheduleWithFixedDelay(command, /* initialDelay */ 5000, /* delay */ 15000, /* unit */ TimeUnit.MILLISECONDS);
|
||||
return task;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user