Best practice forum (Archived)

Running Cron - Program and Course completion

 
Bodo Hoenen
Running Cron - Program and Course completion
על ידי Bodo Hoenen בתאריך 26/04/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!
פרסום זה הוסר
26/04/2013, 12:10
פרסום זה הוסר ואינו זמין יותר.
פרסום זה הוסר
26/04/2013, 14:43
פרסום זה הוסר ואינו זמין יותר.
me
Re: Running Cron - Program and Course completion
על ידי George Angus בתאריך 28/04/2013, 16:43
קבוצה 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
על ידי Bodo Hoenen בתאריך 15/05/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

פרסום זה הוסר
15/05/2013, 17:09
פרסום זה הוסר ואינו זמין יותר.
פרסום זה הוסר
28/04/2013, 20:20
פרסום זה הוסר ואינו זמין יותר.
Bodo Hoenen
Re: Running Cron - Program and Course completion
על ידי Bodo Hoenen בתאריך 29/04/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
על ידי Simon Coggins בתאריך 15/05/2013, 19:07
קבוצה 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