Add Job to disconnect stale sessions #15

Closed
opened 2026-03-25 13:29:07 +01:00 by lars.winzer · 7 comments
lars.winzer commented 2026-03-25 13:29:07 +01:00 (Migrated from git.scicore.unibas.ch)

Task

Summary

Some kind of watchdog that iterates over all currently active sessions and checks when they were last active. If they exceed a set threshold, the session should be disconnected.

Context

Session and Session related Job

Definition of Done

  • Add last_active field to session (updated on recieve)
  • Create runnable job to iterate over sessions and disconnect those that lie stale for certain threshold

Checklist

  • Linked to other issues or branches that must be completed first?
## Task ### Summary Some kind of watchdog that iterates over all currently active sessions and checks when they were last active. If they exceed a set threshold, the session should be disconnected. ### Context Session and Session related Job ### Definition of Done - [x] Add last_active field to session (updated on recieve) - [x] Create runnable job to iterate over sessions and disconnect those that lie stale for certain threshold ### Checklist - [x] Linked to other issues or branches that must be completed first?
lars.winzer commented 2026-03-28 10:44:57 +01:00 (Migrated from git.scicore.unibas.ch)

created branch feat/15-session-disconnect-job to address this issue

created branch [`feat/15-session-disconnect-job`](/cs108-fs26/Gruppe-13/-/compare/main...feat%2F15-session-disconnect-job) to address this issue
lars.winzer commented 2026-03-28 10:44:59 +01:00 (Migrated from git.scicore.unibas.ch)

assigned to @lars.winzer

assigned to @lars.winzer
lars.winzer commented 2026-03-28 13:13:00 +01:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item Add last_active field to session (updated on recieve) as completed

marked the checklist item **Add last\_active field to session \(updated on recieve\)** as completed
lars.winzer commented 2026-03-28 13:13:01 +01:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item Create runnable job to iterate over sessions and disconnect those that lie stale for certain threshold as completed

marked the checklist item **Create runnable job to iterate over sessions and disconnect those that lie stale for certain threshold** as completed
lars.winzer commented 2026-03-28 13:16:21 +01:00 (Migrated from git.scicore.unibas.ch)

mentioned in merge request !51

mentioned in merge request !51
lars.winzer commented 2026-03-28 13:17:19 +01:00 (Migrated from git.scicore.unibas.ch)

added 25m of time spent at 2026-03-28 12:00:00 +0100

added 25m of time spent at 2026-03-28 12:00:00 +0100
lars.winzer commented 2026-03-28 13:17:43 +01:00 (Migrated from git.scicore.unibas.ch)

mentioned in commit 8d571172d5

mentioned in commit 8d571172d56465c5a2896dbdab0187adf367f2f6
lars.winzer (Migrated from git.scicore.unibas.ch) closed this issue 2026-03-28 13:17:44 +01:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: University-of-Basel-Studentprojects/Programmierprojekt#15