{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/238","repository_url":"https://api.github.com/repos/Microsoft/o365-moodle","labels_url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/238/comments","events_url":"https://api.github.com/repos/Microsoft/o365-moodle/issues/238/events","html_url":"https://github.com/Microsoft/o365-moodle/issues/238","id":300614467,"number":238,"title":"Problem with Sync users with Azure AD scheduled job","user":{"login":"mijalchev","id":20948466,"avatar_url":"https://avatars2.githubusercontent.com/u/20948466?v=4","gravatar_id":"","url":"https://api.github.com/users/mijalchev","html_url":"https://github.com/mijalchev","followers_url":"https://api.github.com/users/mijalchev/followers","following_url":"https://api.github.com/users/mijalchev/following{/other_user}","gists_url":"https://api.github.com/users/mijalchev/gists{/gist_id}","starred_url":"https://api.github.com/users/mijalchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mijalchev/subscriptions","organizations_url":"https://api.github.com/users/mijalchev/orgs","repos_url":"https://api.github.com/users/mijalchev/repos","events_url":"https://api.github.com/users/mijalchev/events{/privacy}","received_events_url":"https://api.github.com/users/mijalchev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-27T12:41:34Z","updated_at":"2018-02-27T12:41:34Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nWe have installation of the o365 integration on Moodle 3.3.\r\nThe Azure user database contains few thousands users. When we run **Sync users with Azure AD** manually everything works. The job is running and parsing through around 1000 user and save the state. Than run again manually and it starts from where was before and the same until the all users in Azure AD are parsed. \r\n\r\nThe problem is with auto Sync in Scheduled jobs. If the job is left on the default vaule * 1 * * * than it runs once and parsing only the first 1000 users. Than the next day it again starts from the beginning and never parse all the users. \r\n\r\nI tried to change the frequency of the job to * */1 * * * or 0 */1 * * * but as soon as I change the default values in the **Sync users with Azure AD** job it does not run at all. It never starts.\r\n\r\nNo errors in apache log. No errors in debugging mode.\r\n\r\n"}}
{"actor":{"display_login":"mijalchev"}}