Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ver3.1 #3

Merged
merged 10 commits into from
Aug 28, 2017
Merged

Ver3.1 #3

merged 10 commits into from
Aug 28, 2017

Conversation

mgage
Copy link
Member

@mgage mgage commented Jun 12, 2017

This pull request updates the way that the cron jobs for uploading grades are triggered. This new method will work with Moodle 3.x

The old method watched for modifications to the moodle log file. The moodle logging mechanism has changed and no longer modifies the original log file hence the wwassignment cron job assumed no changes were made and it would not run. This new version watches the standard_logfile that is regularly updated by moodle.

To test (without setting debug flags). Create a moodle course with links to a webwork assignment.
Check that the grades for that webwork assignment are all 0. Then do some of the assignment problems (you can do this as a professor if you wish, but it should also be tested with students). Recheck the grade book. If the grades have not already been transferred you can speed up the process by typing

cd /opt/htdocs/moodle/admin/cli
php cron.php

in order to trigger the cron job from the command line.

There will be an item in the resulting listing that indicates that the the cron job for wwassignment has run (there should be no errors listed). The grades in the moodle gradebook should now be updated.

To see more detail you can set DEBUG and TRACE flags to 1 at the top of the file
wwassignment/locallib. The messages will appear in the php_error log file. You can find
it's location with

php -i |grep log

You can also uncomment lines that define LOG in webwork2/lib/WebworkSOAP.pm which will
print progress messages to the apache error_log

@mgage mgage merged commit 39a958e into openwebwork:ver3.0 Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant