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

cron job does not update moodle gradebook from wwassignment #2

Open
mgage opened this issue Feb 12, 2017 · 7 comments
Open

cron job does not update moodle gradebook from wwassignment #2

mgage opened this issue Feb 12, 2017 · 7 comments

Comments

@mgage
Copy link
Member

mgage commented Feb 12, 2017

I am currently using Moodle 3.2.1. The webwork version is 2.12.

I have used moodle webwork integration to use webwork assignments in Moodle. However, grades are not being reflected in the gradebook.

I have to turn editing on. Then to edit of the assignment and save and back to course in order to see the updated grades.

I seems like the cron job for wwassignment isn't working.
(Renate Mittelmann, Karan Uppal

I can verify the problem. The cause is that wwassignment is using older methods for logging events -- unless you set specific legacy flags this means that nothing involving wwassignment is logged. The cron job only updates courses for which there has been recent wwassignment activity (as viewed in mdl_log).

The long term fix will be to update wwassignment to conform to the logging tools used in moodle 3.x.

For the short term one can force updating the gradebook by editing one or more of the wwassignments in the moodle course and saving the edit.

When they are ready updates will appear on https://github.com/openwebwork/wwassignment. Pull requests are welcome -- many of you have more expertise in developing moodle modules than I do. I will be happy to help with any issues on the webwork end of the communication.

-- Mike Gage

@jcharaoui
Copy link

jcharaoui commented Mar 7, 2018

There's also an additional issue to consider: the wwassignment_cron task is currently excruciatingly slow and/or poorly optimized. On our mid-size Moodle instance, we have about 30 seldom used WebWorK activities:

Processing module function wwassignment_cron ...
... used 701 dbqueries
... used 177,59930801392 seconds

@mgage
Copy link
Member Author

mgage commented Mar 13, 2018

FIXED:

The wwassignment module for Moodle was updated in August, 2017. It is available at the site
https://github.com/openwebwork/wwassignment. I think that will both make sure that the wwassignment_cron task runs and that it will only update courses that have changed since the last time the cron task was run. Please report back if your experience is different.
;

@mgage
Copy link
Member Author

mgage commented Mar 13, 2018 via email

@jcharaoui
Copy link

Hi Mike, I'm running the following version, which should correspond to the latest version:
87e09069dfe809e6f07a4e6e074fa248c20dbdfe mod/wwassignment (heads/ver3.0)

I'll have to query teachers to see if they even use grades from WebWorK. All I can say at this point is that the task itself is quite taxing on our instance, probably because our mdl_log table is rather large and contains millions of entries.

@mgage
Copy link
Member Author

mgage commented Mar 16, 2018 via email

@jcharaoui
Copy link

Hi Mike, thanks for coming back to me. I got to speak with some of our teachers on our side and it turns out that they do collect WebWorK grades but do so by manually importing them into a third party database. So we have no use for those in Moodle.

What would help us, in this case, would be for the module to switch to the new Task API. I'll create a separate issue to track that specific request.

@mgage
Copy link
Member Author

mgage commented Mar 17, 2018 via email

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

No branches or pull requests

2 participants