Skip to content
Snippets Groups Projects
Commit c2ae3f46 authored by Karen Pailozian's avatar Karen Pailozian
Browse files

Idle-culler moved to extraConfig, sys.executable instead of python3

parent 877c300e
No related branches found
No related tags found
No related merge requests found
...@@ -154,18 +154,22 @@ hub: ...@@ -154,18 +154,22 @@ hub:
admin_access: true admin_access: true
authenticate_prometheus: false authenticate_prometheus: false
authenticator_class: egi_notebooks_hub.egiauthenticator.EGICheckinAuthenticator authenticator_class: egi_notebooks_hub.egiauthenticator.EGICheckinAuthenticator
services:
- name: 'jupyterhub-idle-culler-service'
admin: true
command:
- python3
- -m
- jupyterhub_idle_culler
- --timeout=600
- --cull-users=True
- --remove-named-servers=True
# spawner_class: (in egi-notebooks-b2drop) # spawner_class: (in egi-notebooks-b2drop)
extraConfig: extraConfig:
define-idle-culler-service: |-
c.JupyterHub.services = [
{
"name": "jupyterhub-idle-culler-service",
"command": [
sys.executable,
"-m", "jupyterhub_idle_culler",
"--timeout=600",
"--cull-users=True",
"--remove-named-servers=True"
],
"admin": True,
}
]
assign-roles-culler: |- assign-roles-culler: |-
c.JupyterHub.load_roles = [ c.JupyterHub.load_roles = [
{ {
...@@ -177,7 +181,7 @@ hub: ...@@ -177,7 +181,7 @@ hub:
"read:servers", "read:servers",
"delete:servers", "delete:servers",
"admin:users", # if using --cull-users (to delete users) "admin:users", # if using --cull-users (to delete users)
], ]
} }
] ]
egi-notebooks-welcome: |- egi-notebooks-welcome: |-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment