Skip to content
Snippets Groups Projects
Unverified Commit fcc3cf8e authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Correctly configured the cron task

parent 6daae338
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* @copyright 2017 Tobias Reischmann WWU * @copyright 2017 Tobias Reischmann WWU
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
namespace tool_cleanupcourses; namespace tool_cleanupcourses\task;
use tool_cleanupcourses\manager\lib_manager; use tool_cleanupcourses\manager\lib_manager;
use tool_cleanupcourses\manager\step_manager; use tool_cleanupcourses\manager\step_manager;
......
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Definition of cleanup courses scheduled tasks.
*
* @package tool_cleanupcourses
* @category task
* @copyright 2017 Tobias Reischmann WWU
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$tasks = array(
array(
'classname' => 'tool_cleanupcourses\task\process_cleanup',
'blocking' => 0,
'minute' => '*',
'hour' => '*',
'day' => '*',
'month' => '*',
'dayofweek' => '*',
'faildelay' => 1,
)
);
\ No newline at end of file
...@@ -40,6 +40,8 @@ $string['step_settings_header'] = 'Specific settings of the step type'; ...@@ -40,6 +40,8 @@ $string['step_settings_header'] = 'Specific settings of the step type';
$string['general_settings_header'] = 'General Settings'; $string['general_settings_header'] = 'General Settings';
$string['followedby_none'] = 'None'; $string['followedby_none'] = 'None';
$string['process_cleanup'] = 'Run the cleanup courses processes';
$string['trigger_subpluginname'] = 'Subplugin Name'; $string['trigger_subpluginname'] = 'Subplugin Name';
$string['trigger_enabled'] = 'Enabled'; $string['trigger_enabled'] = 'Enabled';
$string['trigger_sortindex'] = 'Up/Down'; $string['trigger_sortindex'] = 'Up/Down';
......
...@@ -23,5 +23,5 @@ ...@@ -23,5 +23,5 @@
defined('MOODLE_INTERNAL') || die; defined('MOODLE_INTERNAL') || die;
$plugin->version = 2017061903; $plugin->version = 2017062100;
$plugin->component = 'tool_cleanupcourses'; $plugin->component = 'tool_cleanupcourses';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment