增加自动运行任务时任务状态展示

1.  添加bot远程地址
2. 增加文件后缀配置
3. 增加定时任务页数缓存
This commit is contained in:
hanhh
2021-06-13 18:18:01 +08:00
parent 424a1e6491
commit 1923ceb5c2
9 changed files with 96 additions and 10 deletions
+4
View File
@@ -120,6 +120,10 @@ run_normal() {
log_dir="$dir_log/${log_dir_tmp%%.*}"
log_path="$log_dir/$log_time.log"
make_dir "$log_dir"
local id=$(cat $list_crontab_user | grep -E "$cmd_task $p1$" | perl -pe "s|.*ID=(.*) $cmd_task $p1$|\1|" | xargs | sed 's/ /","/g')
local status="0" ## 0 任务运行中
update_cron_status "\"$id\"" $status
timeout $command_timeout_time $which_program $p1 2>&1 | tee $log_path
}