xAPI-vle / moodle-logstore_xapi

A Moodle plugin to send xAPI statements to an LRS using events in the Moodle logstore.
GNU General Public License v3.0
75 stars 85 forks source link

Question - can the plugin be scheduled to run each night? #798

Closed KenBurch closed 1 year ago

KenBurch commented 3 years ago

Description

Version

Steps to reproduce the bug

  1. {{steps}}

Expected behaviour

Actual behaviour

Server information

Client information

Additional information

KenBurch commented 3 years ago

Sorry I know GIT isn't the correct place for questions, but there doesn't seem to be any activity on the Moodle plugins page

stephen-oh commented 3 years ago

Hi @KenBurch

Any scheduled task can be changed when logged into the site as an admin. See this article here: https://docs.moodle.org/36/en/Scheduled_tasks

At the moment the plugin is set to run its scheduled task emit_task every minute. Depending on how much activity your site has and the performance of your server this might actually be necessary in order to process the queue of events without creating a backlog. Another setting which will play into this will be the batch size, if the task is running less frequently you will most likely need to increase this.

If you are however wanting to run this at night then I would suggest running it every minute for a good couple of hours at least and monitor how effective that is. You don't want to be in a situation where the task cannot complete the previous days events.

This doc here might we worth a read as it covers adding historical events into the queue which is similar to what you will be doing: https://github.com/xAPI-vle/moodle-logstore_xapi/blob/master/docs/historical-events.md