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

Class plagiarism_plugin_copyleaks has a legacy cron method implemented #14

Closed
aurelienb1 opened this issue Jul 25, 2022 · 2 comments
Closed

Comments

@aurelienb1
Copy link

See message below, Plagiarism plugins should implement their own schedule tasks

Execute scheduled task: Background processing of obsolete cron files from plagiarism detection plugins(core\task\plagiarism_cron_task)
... started 13:40:40. Current memory use 13Mo.
Processing cron function for plagiarism_plugin_copyleaks...... started 13:40:40. Current memory use 13Mo.
It has been detected the class plagiarism_plugin_copyleaks has a legacy cron method implemented. Plagiarism plugins should implement their own schedule tasks
.... used 0 dbqueries
... used 0.0097770690917969 seconds
Scheduled task complete: Background processing of obsolete cron files from plagiarism detection plugins (core\task\plagiarism_cron_task)

@CL-BayanAbuawad
Copy link
Collaborator

Hey @aurelienb1,

As you can see in here and here, we do use scheduled tasks, so I am not sure why you are seeing this message.

Might it be because we have an empty cron function?

@aurelienb1
Copy link
Author

Hi,

Yes, i think because you have empty cron function.

I found this in another plagiarism plugin, see MDL-52702 https://tracker.moodle.org/browse/MDL-52702

/**
 * Workaround MDL-52702 before version 3.1.
 */
public function cron() {
    // Do nothing.
    // Workaround MDL-52702 before version 3.1.
    // Affected branches moodle 2.7 - 3.0.
}

Regards

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