Best practice forum (Archived)

Running Cron - Program and Course completion

 
Bodo Hoenen
Running Cron - Program and Course completion
par Bodo Hoenen, Friday 26 April 2013, 11:50
 

Running Cron - Program and Course completion

I'm trying to get the course completion and program completion status to update as close to real time as possible, and I want to get some general advise and feedback on this. 

I believe course and program completion is calculated via the cron. As standard I believe this is done on an hourly basis, and the program status on a daily basis.

  • Is it possible to get these to run close to real time?
  • have others done this, and what is the effect on the server?
Thank you in advance!
Ce message du forum a été supprimé
Friday 26 April 2013, 12:10
Le contenu de ce message de forum a été supprimé et n'est plus accessible.
Ce message du forum a été supprimé
Friday 26 April 2013, 14:43
Le contenu de ce message de forum a été supprimé et n'est plus accessible.
me
Re: Running Cron - Program and Course completion
par George Angus, Sunday 28 April 2013, 16:43
Groupe Totara

Hi Bodo,

This is possible, but as to what effect this may have on your server Im not sure - but it will have a detrimental effect on speed if they are run too often. Hopefully you can get some feedback from others on the forum.

regards,

George.

Bodo Hoenen
Re: Running Cron - Program and Course completion
par Bodo Hoenen, Wednesday 15 May 2013, 06:24
 

Hi George, 

Can you get a Totara developer to give us their opinion on this matter: How to make the course and program progress status real time or as close to real time as possible.

"Has anyone considered separating the Course and Program completion processes from the current cron, and have this separate 'Progress cron' run more often?
OR 
potentially have it run after each course completion event on a per user bases. I.E its run only on my records when I complete the course."

Regards
Bodo

Ce message du forum a été supprimé
Wednesday 15 May 2013, 17:09
Le contenu de ce message de forum a été supprimé et n'est plus accessible.
Ce message du forum a été supprimé
Sunday 28 April 2013, 20:20
Le contenu de ce message de forum a été supprimé et n'est plus accessible.
Bodo Hoenen
Re: Running Cron - Program and Course completion
par Bodo Hoenen, Monday 29 April 2013, 08:31
 

Has anyone considered separating the Course and Program completion processes from the current cron, and have this separate 'Progress cron' run more often? OR potentially have it run after each course completion event on a per user bases. I.E its run only on my records when I complete the course.

  • has anyone attempted to do something like this?
Regards
Bodo
 
Simon Coggins
Re: Running Cron - Program and Course completion
par Simon Coggins, Wednesday 15 May 2013, 19:07
Groupe Totara

This has actually already been done in Totara for Course completion - there is a script at lib/completion/run_cron.php which will just run the course completion cron but not other cron activities. It was added in 2.2.10 so exists in all later versions and in 2.4.

Adding a similar script for program completion might be a good intermediate step until the "instant completion" functionality has been finished.

Simon