<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Application">
    <CVS>$Id: Scheduler.xml,v 1.5 2011/07/15 21:05:54 cg Exp $</CVS>
    <ConfigItem Name="Scheduler::LogPath" Required="1" Valid="1">
        <Description Translatable="1">Defines the path for scheduler to store its console output (SchedulerOUT.log and SchedulerERR.log).</Description>
        <Group>Scheduler</Group>
        <SubGroup>Core::Log</SubGroup>
        <Setting>
            <String Regex="">&lt;OTRS_CONFIG_Home&gt;/var/log</String>
        </Setting>
    </ConfigItem>
    <ConfigItem Name="Scheduler::Log::DaysToKeep" Required="0" Valid="0">
        <Description Translatable="1">Defines the time in days to keep log backup files.</Description>
        <Group>Scheduler</Group>
        <SubGroup>Core::Log</SubGroup>
        <Setting>
            <String Regex="[1-9]\d*">10</String><!-- default 10 days -->
        </Setting>
    </ConfigItem>
    <ConfigItem Name="Scheduler::SleepTime" Required="1" Valid="1">
        <Description Translatable="1">Defines scheduler sleep time in seconds after processing all available tasks (floating point number).</Description>
        <Group>Scheduler</Group>
        <SubGroup>Core</SubGroup>
        <Setting>
            <String Regex="\d+[.]*\d*">1.0</String>
        </Setting>
    </ConfigItem>
    <ConfigItem Name="Scheduler::PIDUpdateTime" Required="1" Valid="1">
        <Description Translatable="1">Defines scheduler PID update time in seconds (floating point number).</Description>
        <Group>Scheduler</Group>
        <SubGroup>Core</SubGroup>
        <Setting>
            <String Regex="\d+[.]*\d*">60.0</String>
        </Setting>
    </ConfigItem>
    <ConfigItem Name="Scheduler::RestartAfterSeconds" Required="1" Valid="1">
        <Description Translatable="1">Defines the time in seconds after which the Scheduler performs an automatic self-restart.</Description>
        <Group>Scheduler</Group>
        <SubGroup>Core</SubGroup>
        <Setting>
            <String Regex="[1-9]\d*">86400</String><!-- default 1 day -->
        </Setting>
    </ConfigItem>
    <ConfigItem Name="Frontend::Module###AdminScheduler" Required="0" Valid="1">
        <Description Translatable="1">Frontend module registration for the agent interface.</Description>
        <Group>Scheduler</Group>
        <SubGroup>Frontend::Admin::ModuleRegistration</SubGroup>
        <Setting>
            <FrontendModuleReg>
                <Group>admin</Group>
                <Description>Admin</Description>
                <Title Translatable="1">GenericInterface Webservice Mapping GUI</Title>
            </FrontendModuleReg>
        </Setting>
    </ConfigItem>
   <ConfigItem Name="Frontend::NotifyModule###800-Scheduler-Check" Required="0" Valid="1">
        <Description Translatable="1">Defines the module to display a notification in the agent interface, (only for agents on the admin group) if the scheduler is not running.</Description>
        <Group>Scheduler</Group>
        <SubGroup>Frontend::Agent::ModuleNotify</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::NotificationSchedulerCheck</Item>
                <Item Key="NotifyGroups">
                    <Hash>
                        <Item Key="admin">1</Item>
                        <Item Key="users">0</Item>
                    </Hash>
                </Item>
            </Hash>
        </Setting>
    </ConfigItem>
    <ConfigItem Name="Loader::Agent::CommonJS###000-GenericInterface" Required="1" Valid="1">
        <Description Translatable="1">List of JS files to always be loaded for the agent interface.</Description>
        <Group>Scheduler</Group>
        <SubGroup>Core::Web</SubGroup>
        <Setting>
            <Array>
                <Item>Core.Agent.Admin.Scheduler.js</Item>
            </Array>
        </Setting>
    </ConfigItem>

</otrs_config>
