You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cron task is designed to pull learner completion data based on the currently logged in $USER.
Problem is this $USER variable defaults to the "Admin User" when the task runs on the server, and no activity statements are ever returned because the actor being sent to the LRS is always going to be "Admin". I had to override this behavior to instead use the user ID passed in by Moodle when it attempts to update an activity's completion state, and I wanted to know if this was intentional behavior.
The text was updated successfully, but these errors were encountered:
The cron task is designed to pull learner completion data based on the currently logged in $USER.
Problem is this $USER variable defaults to the "Admin User" when the task runs on the server, and no activity statements are ever returned because the actor being sent to the LRS is always going to be "Admin". I had to override this behavior to instead use the user ID passed in by Moodle when it attempts to update an activity's completion state, and I wanted to know if this was intentional behavior.
The text was updated successfully, but these errors were encountered: