File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ def initialize_settings(self):
9393 if scheduler .task_runner :
9494 loop = asyncio .get_event_loop ()
9595 loop .create_task (scheduler .task_runner .start ())
96-
96+
9797 self ._update_last_activity ()
9898
9999 def _update_last_activity (self ):
@@ -102,4 +102,6 @@ def _update_last_activity(self):
102102 Updates the `last_acitivity_times` dict in the web application. When running with jupyterhub, this prevents
103103 the culler from thinking the server is idle.
104104 """
105- self .serverapp .web_app .settings ["last_activity_times" ]["jupyter_scheduler" ] = datetime .now (timezone .utc )
105+ self .serverapp .web_app .settings ["last_activity_times" ]["jupyter_scheduler" ] = datetime .now (
106+ timezone .utc
107+ )
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def __init__(
101101 environments_manager : Type [EnvironmentManager ],
102102 config = None ,
103103 update_last_activity = None ,
104- ** kwargs
104+ ** kwargs ,
105105 ):
106106 super ().__init__ (config = config , ** kwargs )
107107 self .root_dir = root_dir
@@ -419,7 +419,7 @@ def __init__(
419419 environments_manager = environments_manager ,
420420 config = config ,
421421 update_last_activity = update_last_activity ,
422- ** kwargs
422+ ** kwargs ,
423423 )
424424 self .db_url = db_url
425425 if self .task_runner_class :
You can’t perform that action at this time.
0 commit comments