Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
9607b79e
Commit
9607b79e
authored
Feb 07, 2018
by
Daniel Clemente Laboreo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add role to call the "clearsessions" management command
parent
4eae3776
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
playbooks/roles/edxapp/defaults/main.yml
+8
-0
playbooks/roles/edxapp/tasks/deploy.yml
+10
-0
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
9607b79e
...
...
@@ -754,6 +754,14 @@ EDXAPP_SESSION_SAVE_EVERY_REQUEST: false
EDXAPP_SESSION_COOKIE_SECURE
:
false
# Optionally add a cron job to run the "clearsessions" management command to delete expired sessions
# Hours and minutes follow cron syntax.
# E.g. "15,19" hours and "0" minutes will run it at 15:00 and 19:00.
# "*" hours and "5" minutes will run it every hour at past 5 minutes.
EDXAPP_CLEARSESSIONS_CRON_ENABLED
:
false
EDXAPP_CLEARSESSIONS_CRON_HOURS
:
"
14"
EDXAPP_CLEARSESSIONS_CRON_MINUTES
:
"
0"
EDXAPP_VIDEO_IMAGE_MAX_AGE
:
31536000
# This is django storage configuration for Video Image settings.
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
9607b79e
...
...
@@ -446,3 +446,13 @@
tags
:
-
install
-
install:base
-
name
:
install cron job to run clearsessions
cron
:
name
:
"
clear
expired
Django
sessions"
user
:
"
{{
edxapp_user
}}"
job
:
"
{{
edxapp_venv_bin
}}/python
{{
edxapp_code_dir
}}/manage.py
lms
clearsessions
--settings={{
edxapp_settings
}}
>/dev/null
2>&1"
hour
:
"
{{
EDXAPP_CLEARSESSIONS_CRON_HOURS
}}"
minute
:
"
{{
EDXAPP_CLEARSESSIONS_CRON_MINUTES
}}"
day
:
"
*"
when
:
EDXAPP_CLEARSESSIONS_CRON_ENABLED
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment