计划任务
[
增加一个新任务
]
任务程序
任务说明
是否启用
运行时间
上次运行时间
管理
SetQuery("Select id,taskname,dourl,islock,runtype,runtime,starttime,endtime,freq,lastrun,description From `#@__sys_task` order by id desc "); $dsql->Execute(); while($row = $dsql->GetObject()) { ?>
taskname; ?>
dourl; ?>
description; ?>
islock==0 ? '启用' : '禁用'); ?>
runtime; ?>
lastrun) ? '没运行过' : GetDateTimeMk($row->lastrun)); ?>
[修改]
[删除]
计划任务执行的说明
·为了确保任务能执行完全,建议使用Dede的客户端工具,否则只能通过JS触发,但JS触发有很多不确定因素会导致任务不能完成;
·JS触发方式:在所有文档页面中用JS调用/plus/task.php?client=js(必须禁用计划任务的密码,
系统配置参数->其它选项
);
·自行定制客户端:直接访问“http://网址/plus/task.php?clientpwd=管理密码”,会返回其中一个可执行任务的网址(没有可用任务则返回串:notask),然后客户端运行这个网址即可。