SwissUpLabs Logo

Cron configuration

In order to get customer answers via email and to close inactive tickets, the Helpmate extension uses core Magento cron process. For more details about configuring Magento cron please check http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html

Helpmate cron settings are set at app\code\local\TM\Helpmate\etc\config.xml with following xml code.

<crontab>
    <jobs>
        <tm_helpmate_mail>
            <schedule>
                <cron_expr>*/5 * * * *</cron_expr> <!-- */5 * * * * -->
            </schedule>
            <run>
                <model>helpmate/observer::sheduledAddEmailedTicket</model>
            </run>
        </tm_helpmate_mail>
        <tm_helpmate_auto_close>
            <schedule>
                <cron_expr>0 0 * * *</cron_expr> <!-- Daily at midnight  -->
            </schedule>
            <run>
                <model>helpmate/observer::autoCloseTicketAfterXDay</model>
            </run>
        </tm_helpmate_auto_close>
    </jobs>
</crontab>

For example, in order to change the interval for checking email gateway, you have to change cron time settings in the code provided below

<cron_expr>*/5 * * * *</cron_expr>.

Time interval for email gateway processing is set every 5 minutes by default. The interval for ticket auto close process is set to 1 time per 24 hours.

You can also check

Edit this Page