{"action":"closed","issue":{"url":"https://api.github.com/repos/turnitin/moodle-plagiarism_turnitin/issues/71","repository_url":"https://api.github.com/repos/turnitin/moodle-plagiarism_turnitin","labels_url":"https://api.github.com/repos/turnitin/moodle-plagiarism_turnitin/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/turnitin/moodle-plagiarism_turnitin/issues/71/comments","events_url":"https://api.github.com/repos/turnitin/moodle-plagiarism_turnitin/issues/71/events","html_url":"https://github.com/turnitin/moodle-plagiarism_turnitin/issues/71","id":126560337,"number":71,"title":"plagiarism_plugin::cron() will be deprecated in Moodle 3.1","user":{"login":"danmarsden","id":362798,"avatar_url":"https://avatars.githubusercontent.com/u/362798?v=3","gravatar_id":"","url":"https://api.github.com/users/danmarsden","html_url":"https://github.com/danmarsden","followers_url":"https://api.github.com/users/danmarsden/followers","following_url":"https://api.github.com/users/danmarsden/following{/other_user}","gists_url":"https://api.github.com/users/danmarsden/gists{/gist_id}","starred_url":"https://api.github.com/users/danmarsden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmarsden/subscriptions","organizations_url":"https://api.github.com/users/danmarsden/orgs","repos_url":"https://api.github.com/users/danmarsden/repos","events_url":"https://api.github.com/users/danmarsden/events{/privacy}","received_events_url":"https://api.github.com/users/danmarsden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-14T02:07:25Z","updated_at":"2016-04-12T08:31:11Z","closed_at":"2016-04-12T08:31:11Z","body":"Hey John/team - FYI - In Moodle 3.1 (not yet released) plagiarism plugins that call the plagiarism_plugin::cron() function will throw a debugging warning stating that the cron function is now deprecated - plugins should move to using the newer \"scheduled tasks\" process instead. Eventually the function will be removed from a future Moodle release which may prevent your plugin from working unless you have converted to using scheduled tasks.\r\n\r\nMore information on this change is available in https://tracker.moodle.org/browse/MDL-52702\r\n\r\nDeveloper documentation on scheduled tasks is available here:\r\nhttps://docs.moodle.org/dev/Task_API\r\n\r\nI've converted the URKUND plugin if you want an example - feel free to copy/borrow/re-use the code as usual:\r\nhttps://github.com/danmarsden/moodle-plagiarism_urkund/blob/master/db/tasks.php\r\nhttps://github.com/danmarsden/moodle-plagiarism_urkund/tree/master/classes/task"}}