cannod / moodle-drupalservices

Moodle plugin to connect to Drupal services
36 stars 25 forks source link

Cron Synchronization Script #69

Open ohdavey opened 8 years ago

ohdavey commented 8 years ago

auth.php line 282

Prevents cron from running and updating moodle plugins at line 282. The die() function kills the cron job. The only way to get pass this is by commenting out the die() function in line 283.

goose2000 commented 8 years ago

Thanks, so even if the work auth.php tries, has problems, the rest of the cron job que will get processed; keeps going.

ocitguy commented 8 years ago

A cleaner way to keep the moodle cron job running is to comment out (or delete) line 283 and replace it with:

print("There are no changes to the user list.\n"); return;

That will exit the cron synchronization script, but allow the moodle cron script to continue. Also, it confirms that the script is being run.