MDL-25499: Centralise management of all types of cron tasks
authorDamyon Wiese <damyon@moodle.com>
Tue, 25 Feb 2014 01:47:39 +0000 (09:47 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 26 Feb 2014 04:03:46 +0000 (12:03 +0800)
commit309ae8921f44329cd6bc4b0d6403bca8fa2531f2
tree14bf3ec4e0eb45e48ffaa1f24d77f2c0a5b712f9
parent45fdcb7ce3b1a652dd59d0ac0695d012baf190a8
MDL-25499: Centralise management of all types of cron tasks

Centralise management of all types of cron tasks with registration, scheduling,
parallel task conflicts(blocking) and running once off tasks, all using an
administration screen.

This is a combination of several issues:

MDL-25502: Added "black magic" task allocator for cron
MDL-25503: Add step to cron to run all scheduled tasks
MDL-25504 cron: Refactor to use scheduler
MDL-25505: Add an admin interface to schedule tasks via cron.
MDL-25507: Add support for adhoc tasks.
55 files changed:
admin/tool/task/classes/edit_scheduled_task_form.php [new file with mode: 0644]
admin/tool/task/lang/en/tool_task.php [new file with mode: 0644]
admin/tool/task/renderer.php [new file with mode: 0644]
admin/tool/task/scheduledtasks.php [new file with mode: 0644]
admin/tool/task/settings.php [new file with mode: 0644]
admin/tool/task/version.php [new file with mode: 0644]
lang/en/admin.php
lang/en/moodle.php
lib/adminlib.php
lib/classes/plugin_manager.php
lib/classes/task/adhoc_task.php [new file with mode: 0644]
lib/classes/task/automated_backup_task.php [new file with mode: 0644]
lib/classes/task/backup_cleanup_task.php [new file with mode: 0644]
lib/classes/task/badges_cron_task.php [new file with mode: 0644]
lib/classes/task/blog_cron_task.php [new file with mode: 0644]
lib/classes/task/cache_cleanup_task.php [new file with mode: 0644]
lib/classes/task/cache_cron_task.php [new file with mode: 0644]
lib/classes/task/calendar_cron_task.php [new file with mode: 0644]
lib/classes/task/check_for_updates_task.php [new file with mode: 0644]
lib/classes/task/completion_cron_task.php [new file with mode: 0644]
lib/classes/task/context_cleanup_task.php [new file with mode: 0644]
lib/classes/task/create_contexts_task.php [new file with mode: 0644]
lib/classes/task/delete_incomplete_users_task.php [new file with mode: 0644]
lib/classes/task/delete_logs_task.php [new file with mode: 0644]
lib/classes/task/delete_unconfirmed_users_task.php [new file with mode: 0644]
lib/classes/task/events_cron_task.php [new file with mode: 0644]
lib/classes/task/file_temp_cleanup_task.php [new file with mode: 0644]
lib/classes/task/file_trash_cleanup_task.php [new file with mode: 0644]
lib/classes/task/grade_cron_task.php [new file with mode: 0644]
lib/classes/task/legacy_plugin_cron_task.php [new file with mode: 0644]
lib/classes/task/manager.php [new file with mode: 0644]
lib/classes/task/messaging_cleanup_task.php [new file with mode: 0644]
lib/classes/task/password_reset_cleanup_task.php [new file with mode: 0644]
lib/classes/task/plagiarism_cron_task.php [new file with mode: 0644]
lib/classes/task/portfolio_cron_task.php [new file with mode: 0644]
lib/classes/task/question_cron_task.php [new file with mode: 0644]
lib/classes/task/registration_cron_task.php [new file with mode: 0644]
lib/classes/task/scheduled_task.php [new file with mode: 0644]
lib/classes/task/send_failed_login_notifications_task.php [new file with mode: 0644]
lib/classes/task/send_new_user_passwords_task.php [new file with mode: 0644]
lib/classes/task/session_cleanup_task.php [new file with mode: 0644]
lib/classes/task/stats_cron_task.php [new file with mode: 0644]
lib/classes/task/tag_cron_task.php [new file with mode: 0644]
lib/classes/task/task_base.php [new file with mode: 0644]
lib/cronlib.php
lib/db/install.xml [changed mode: 0644->0755]
lib/db/tasks.php [new file with mode: 0644]
lib/db/upgrade.php
lib/moodlelib.php
lib/setuplib.php
lib/tests/adhoc_task_test.php [new file with mode: 0644]
lib/tests/cronlib_test.php
lib/tests/scheduled_task_test.php [new file with mode: 0644]
lib/upgradelib.php
version.php