[`Cron Jobs`]

{if $has_non_halthy && (!$is_waid || !empty($waid_error))}
{if !$is_waid} {sprintf_wp( 'Connect to Webasyst ID to use the Webasyst CRON service.', sprintf( 'href="%s"', "{$wa_backend_url}webasyst/settings/waid/" ) )} {elseif !empty($waid_error)} {$waid_error} {/if}
{/if} {foreach $cron_actions as $action}
{$action.name}
{if $action.is_healthy} {else} {/if} {if empty($action.last_call_datetime)} [`Never executed`] {else} {$action.last_call_datetime|wa_datetime:'humandatetime'} {/if}
{if $is_waid && $is_cron_service} {$_is_cron_tab = empty($action.legacy_cli_run) || !$action.is_healthy || !empty($action.scheduled) && $action.scheduled.status == 'READY'}
[`Webasyst CRON`] [`Set up manually`]
{else} {if $action.is_healthy} {if !empty($action.legacy_cli_run) && !empty($action.legacy_cli)}
[`Job command executed by the web hosting scheduler:`]
php {$root_path}cli.php crm worker {$action.legacy_cli}
{else}
[`Crontab instruction executed by the web hosting scheduler:`]
{$action.expression} php {$root_path}cli.php --cron crm {$action.alias}
{/if} {else} {sprintf_wp( 'Set up a cron job (view setup tips), using the following command, in your web hosting control panel:', sprintf( 'href="%s"', _w('https://developers.webasyst.com/docs/installation/tips/cron/') ) )}
{$action.expression} php {$root_path}cli.php --cron crm {$action.alias}
{/if} {/if}
{/foreach}
{if $is_waid && $is_cron_service && empty($waid_error)} {/if} {* {include file="./SettingsCronEmailSource.inc.html" inline} {include file="./SettingsCronNotificationBirthday.inc.html" inline} {include file="./SettingsCronDailyRecap.inc.html" inline} {include file="./SettingsCronInvoicesArchive.inc.html" inline} {include file="./SettingsCronDealStagesOverDue.inc.html" inline} {include file="./SettingsCronCurrenciesCopy.inc.html" inline} *}