contributions/scheduler/enabled.inc.php
Go to the documentation of this file.00001 <?php 00002 Load::enable_module('status'); 00003 Load::enable_module('console'); 00004 00005 /** 00006 * @defgroup Scheduler 00007 * @ingroup Contributions 00008 * 00009 * The scheduler allows (repeated) execution of arbitrary many tasks, as long as they can be 00010 * invoked through the Gyro console module. 00011 * 00012 * Tasks can be scheduled to be executed at a given date and time. 00013 * 00014 * Tasks can configured to be repeated a given number of times, even with different frequence. 00015 * Reschedule policies can be different in case of success or failure of a task. 00016 */ 00017 00018 /** 00019 * Defines Scheduler Config Options 00020 * 00021 * @author Gerd Riesselmann 00022 * @ingroup Scheduler 00023 * 00024 */ 00025 class ConfigScheduler { 00026 /** Whether to send mails on errors or not */ 00027 const SEND_ERROR_MAIL = 'SCHEDULER_SEND_ERROR_MAIL'; 00028 } 00029 00030 Config::set_feature_from_constant(ConfigScheduler::SEND_ERROR_MAIL, 'APP_SCHEDULER_SEND_ERROR_MAIL', true);