Trigger an event when a date comes

Trigger an event when a date comes

by Rodrigo Aguirregabiria -
Number of replies: 2

Hi everyone

We are currently developing a plugin to match students for groups.

We want to trigger an action when a date comes, in this case, match the students, the problem is that we don't know-how, our only choice now is to make the match when a teacher says so or when a user (professor or teacher) enters in the activity. 

It will be very useful to find some way to trigger this action when the date comes and not depend on user action.

Is there a way to do it?


Average of ratings: -
In reply to Rodrigo Aguirregabiria

Re: Trigger an event when a date comes

by Benjamin Ellis -
Picture of Particularly helpful Moodlers
Hi,

Considered a scheduled task? see https://docs.moodle.org/dev/Task_API .
Average of ratings: Useful (2)
In reply to Benjamin Ellis

Re: Trigger an event when a date comes

by Rodrigo Aguirregabiria -
Hi Benjamin,

We've been having problems with the cron process in our development environment and we couldn't make the task work, but it seems that this is the way to achieve what we wanted.

Thanks for you answer