Gitlab Community Edition Instance

Commit 3c29fc27 authored by mhellka's avatar mhellka
Browse files

Fix: Expired sessions were not closed.

parent fb4ba5eb
......@@ -29,7 +29,9 @@ public class SessionRegistry implements SessionStartListener, SessionListener, R
@Override
public void onStartup(RuntimeContext ctx) throws Exception {
sessionReaper = ctx.lookupRequired(CronService.class).schedule(this::reapExpiredSessions, 10, TimeUnit.SECONDS);
sessionReaper = ctx.lookupRequired(CronService.class).scheduleWithFixedDelay(this::reapExpiredSessions, 60, 10,
TimeUnit.SECONDS);
ctx.lookup(MetricRegistry.class).ifPresent(mr -> {
mr.gauge("sess.open", () -> () -> allSessions.size());
mr.gauge("sess.open.ro", () -> () -> allSessions.values().stream()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment