catalyst / moodle-mod_reengagement

Allows timed release of content and emails users to remind them to complete a course activity
23 stars 40 forks source link

Restricted activity not shown after reengagement completed #32

Closed hosnas closed 6 years ago

hosnas commented 6 years ago

Using the latest plugin and moodle, Here is the scenario to reproduce the issue. 1- creating a reengagement activity of five minutes, without any restriction, named r1. 2- creating an assignment activity, restricted to r1 completion, and hidden if user does not meet requirement.

I log in as a test user and enroll it to the course. I wait for five minutes but nothing happens.

screenshot from 2017-12-03 19-25-21

In this example, wait activity is set to be 5 mins. I waited for 10 mins with no luck.

What could be wrong?

hosnas commented 6 years ago

I analyzed this issue a little bit more. As you can see in the following picture, a reengagement activity called wait is set to be completed at 1:54. screenshot from 2017-12-04 01-49-53

However after 1:54, as you can see, the activity is not completed yet.

screenshot from 2017-12-04 01-55-38

danmarsden commented 6 years ago

Re-engagment relies on your cron process running correctly. The reengagement cron task is also set to only run once every 5 minutes. If you want it to complete faster than that you could adjust the timing of the task under admin > server > scheduled tasks - that page will also show you when the reengagement cron was last run.

hosnas commented 6 years ago

@danmarsden thank you for your reply. Yes I have already seen the cron page and made it to run every 1 minutes. It seems cron is working correctly. And my problem isn't that the restricted activity is not available as soon as 5 minutes pass. The problem is it wont be available at all.

danmarsden commented 6 years ago

not sure sorry - you could try asking for further help in the community forums - all I can suggest is to make sure your cron is running correctly and isn't being blocked by some other broken process.

danmarsden commented 6 years ago

closing as I cannot reproduce and no further information has been provided.