Enrollment reports plugin for Tutor
This is an experimental plugin for
Tutor that creates monthly
enrollment reports (in the
.tsv
format),
and emails them to a configurable address.
It is meant to be run once a month, and will produce enrollment reports covering a period of one month.
 You must install a supported release of this plugin to match the Open edX and Tutor version you are deploying. If you are installing this plugin from a branch in this Git repository, you must select the appropriate one:
Open edX release | Tutor version | Plugin branch | Plugin release |
---|---|---|---|
Lilac | >=12.0, <13 |
Not supported | Not supported |
Maple | >=13.2, <14 1 |
maple |
0.1.x |
Nutmeg | >=14.0, <15 |
nutmeg |
1.x.x |
Olive | >=15.0, <16 |
quince |
>=2.0.0, <3 |
Palm | >=16.0, <17 |
quince |
>=2.2.0, <3 |
Quince | >=17.0, <18 |
quince |
>=2.3.0, <3 |
Redwood | >=18.0, <19 |
main |
>=3 |
Sumac | >=19.0, <20 |
main |
>=3.2.0 |
pip install git+https://github.com/hastexo/tutor-contrib-enrollmentreports@v3.2.0
To enable this plugin, run:
tutor plugins enable enrollmentreports
Before starting Tutor, build the docker image:
tutor images build enrollmentreports
To create enrollment reports in the Tutor local deployment, run:
tutor local enrollmentreports
If you want to run this command periodically in a local deployment, you can invoke this command from a cron job on your host.
For a Kubernetes deployment, this plugin defines a
CronJob
which runs the report generation script according to the schedule
defined in the ENROLLMENTREPORTS_K8S_CRONJOB_SCHEDULE
configuration
parameter.
The following values can all modified with the tutor config save --set PARAM_NAME=VALUE
commands, or your can edit your Tutor config.yml
file directly.
You must
- either set
RUN_SMTP: true
(so that Tutor configures an SMTP server for you), - or configure your SMTP client credentials with
SMTP_HOST
,SMTP_PORT
,SMTP_USERNAME
,SMTP_PASSWORD
, andSMTP_USE_TLS
orSMTP_USE_SSL
.
ENROLLMENTREPORTS_MAIL_TO
: a list of addresses to send the enrollment reports to. Default[]
.ENROLLMENTREPORTS_MAIL_FROM
: the sender address to use on the enrollment reports. Defaults to the value ofSMTP_USERNAME
; you must override this if you want to use a different sender address.ENROLLMENTREPORTS_DOCKER_IMAGE
: the Docker image used to spin up the job pod (set this to an image reference in your local registry, unless your Tutor configuration already setsDOCKER_REGISTRY
to point to that)ENROLLMENTREPORTS_FREQUENCY
: the frequency with which enrollment reports are generated (defaultmonthly
)ENROLLMENTREPORTS_K8S_CRONJOB_SCHEDULE
(default"0 0 1 * *"
, that is once a month at midnight, on the first day of the month)ENROLLMENTREPORTS_K8S_CRONJOB_ENABLE
(defaulttrue
). Set this tofalse
to disable (suspend) the generation of enrollment reports.ENROLLMENTREPORTS_K8S_CRONJOB_STARTING_DEADLINE_SECONDS
(default:900
). See the Kubernetes documentation for details on job start deadlines.
This software is licensed under the terms of the AGPLv3.
Footnotes
-
For Open edX Maple and Tutor 13, you must run version 13.2.0 or  later. That is because this plugin uses the Tutor v1 plugin API,  which was introduced with that  release. ↩