Best practice forum (Archived)

Running Cron - Program and Course completion

 
HoenenBodo
Running Cron - Program and Course completion
HoenenBodo 发表于 2013年04月26日 Friday 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!
该论坛帖子已被删除
2013年04月26日 Friday 12:10
该论坛帖子的内容已被删除,无法再访问。
该论坛帖子已被删除
2013年04月26日 Friday 14:43
该论坛帖子的内容已被删除,无法再访问。
me
Re: Running Cron - Program and Course completion
AngusGeorge 发表于 2013年04月28日 Sunday 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.

HoenenBodo
Re: Running Cron - Program and Course completion
HoenenBodo 发表于 2013年05月15日 Wednesday 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

该论坛帖子已被删除
2013年05月15日 Wednesday 17:09
该论坛帖子的内容已被删除,无法再访问。
该论坛帖子已被删除
2013年04月28日 Sunday 20:20
该论坛帖子的内容已被删除,无法再访问。
HoenenBodo
Re: Running Cron - Program and Course completion
HoenenBodo 发表于 2013年04月29日 Monday 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
 
CogginsSimon
Re: Running Cron - Program and Course completion
CogginsSimon 发表于 2013年05月15日 Wednesday 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