Skip to content

Commit

Permalink
CHG revert active IDE checking window to 15 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Sep 19, 2023
1 parent d7659d5 commit 6504b91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/anubis/lms/theia.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
from anubis.utils.email.event import send_email_event_admin


def get_active_theia_sessions() -> list[TheiaSession]:
theia_active_minutes_window: int = get_config_int('THEIA_ACTIVE_MINUTES_WINDOW', default=60 * 6)
def get_active_theia_sessions(minutes: int = None) -> list[TheiaSession]:
if minutes is None:
theia_active_minutes_window: int = get_config_int('THEIA_ACTIVE_MINUTES_WINDOW', default=15)

# Get all theia sessions within the last 10 minutes that are
# active and don't have cluster_address
Expand Down

0 comments on commit 6504b91

Please sign in to comment.