mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
65 lines
2.0 KiB
PHP
65 lines
2.0 KiB
PHP
<?php
|
||
|
||
return [
|
||
[
|
||
'name' => 'http_demo', // 定时任务的名称,不能重复
|
||
'type' => 'site', // 定时任务的类型,默认只支持site,你也可以重写定时器命令行以支持其他命令
|
||
'target' => '/tools/timer.ResetPassword/do', // 要访问的地址,如果不是以https开头,那么以后台的系统配置中读取相关配置,如果没有配置则不执行
|
||
'frequency' => 600, // 执行频率,单位:秒,填写10,则每10秒过后执行一次
|
||
],
|
||
[
|
||
'name' => 'clear_log',
|
||
'type' => 'site',
|
||
'target' => '/tools/timer.ClearLog/do',
|
||
'frequency' => 600,
|
||
'concurrency' => 1,
|
||
],
|
||
[
|
||
'name' => 'timer_log_clean',
|
||
'type' => 'site',
|
||
'target' => '/tools/timer.LogClean/do',
|
||
'frequency' => 86400,
|
||
'concurrency' => 1,
|
||
],
|
||
[
|
||
'name' => 'nginx_log_import',
|
||
'type' => 'site',
|
||
'target' => '/tools/timer.NginxLogImport/do',
|
||
'frequency' => 300,
|
||
'concurrency' => 1,
|
||
'run_type' => 'all',
|
||
],
|
||
[
|
||
'name' => 'nginx_log_aggregate',
|
||
'type' => 'site',
|
||
'target' => '/tools/timer.NginxLogStatAggregate/do',
|
||
'frequency' => 3600,
|
||
'concurrency' => 1,
|
||
'run_type' => 'auto',
|
||
],
|
||
[
|
||
'name' => 'nginx_log_clean',
|
||
'type' => 'site',
|
||
'target' => '/tools/timer.NginxLogClean/do',
|
||
'frequency' => 86400,
|
||
'concurrency' => 1,
|
||
'run_type' => 'auto',
|
||
],
|
||
[
|
||
'name' => 'xhprof_import',
|
||
'type' => 'site',
|
||
'target' => '/tools/timer.XhprofLogImport/do',
|
||
'frequency' => 60,
|
||
'concurrency' => 1,
|
||
'run_type' => 'all',
|
||
],
|
||
[
|
||
'name' => 'xhprof_clean',
|
||
'type' => 'site',
|
||
'target' => '/tools/timer.XhprofRunClean/do',
|
||
'frequency' => 86400,
|
||
'concurrency' => 1,
|
||
'run_type' => 'auto',
|
||
],
|
||
];
|