Skip to content

Commit

Permalink
helm: add env variable for session inactivity to server
Browse files Browse the repository at this point in the history
Adds an env variable that contains the maximum number of days for which an interactive session can stay inactive before being automaticallly closed.

Closes reanahub/reana-client#657
  • Loading branch information
giuseppe-steduto committed Jun 12, 2023
1 parent d825057 commit 9eaa2b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version 0.9.1 (UNRELEASED)
--------------------------

- Administrators:
- Adds configuration environment variable ``reana_server.environment.REANA_INTERACTIVE_SESSION_MAX_INACTIVITY_PERIOD`` to set a limit in days for the maximum inactivity period of interactive sessions after which they will be closed.
- Adds new configuration option ``interactive_sessions.maximum_inactivity_period`` to set a limit in days for the maximum inactivity period of interactive sessions after which they will be closed.
- Adds new configuration option ``interactive_sessions.cronjob_schedule`` to set how often interactive session cleanup should be performed.
- Adds support for Kubernetes clusters 1.26, 1.27.
Expand Down
2 changes: 2 additions & 0 deletions helm/reana/templates/reana-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ spec:
{{- end }}
- name: REANA_KUBERNETES_JOBS_MAX_USER_TIMEOUT_LIMIT
value: !!str {{ .Values.kubernetes_jobs_max_user_timeout_limit | default 1209600 }} # 1209600 seconds = 14 days
- name: REANA_INTERACTIVE_SESSION_MAX_INACTIVITY_PERIOD
value: {{ .Values.interactive_sessions.maximum_inactivity_period | default "forever" | quote }}
- name: REANA_KUBERNETES_JOBS_TIMEOUT_LIMIT
value: !!str {{ .Values.kubernetes_jobs_timeout_limit | default 604800 }} # 604800 seconds = 7 days
- name: REANA_KUBERNETES_JOBS_MEMORY_LIMIT
Expand Down

0 comments on commit 9eaa2b9

Please sign in to comment.