Copilot
03c7031a3c
Fix task duplication: add single/multi-instance support with UI configuration and stop all running instances ( #2837 )
...
* Initial plan
* Stop running tasks before starting new scheduled instance
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add multi-instance support and fix stop to kill all running instances
- Add allow_multiple_instances field to Crontab model (default: 0 for single instance)
- Add validation for new field in commonCronSchema
- Add getAllPids and killAllTasks utility functions
- Update stop method to kill ALL running instances of a task
- Update runCron to respect allow_multiple_instances config
- Backward compatible: defaults to single instance mode
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add UI support for allow_multiple_instances configuration
- Add allow_multiple_instances field to ICrontab interface
- Add instance mode selector in task creation/edit modal
- Add translations for instance mode in Chinese and English
- Default to single instance mode for backward compatibility
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add allow_multiple_instances column migration and optimize db.ts
- Add allow_multiple_instances column to Crontabs table migration
- Refactor migration code to use data-driven approach
- Replace 11 individual try-catch blocks with single loop
- Improve code maintainability and readability
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-19 00:10:27 +08:00
Copilot
08ef509e27
Optimize log file writes using stream pooling ( #2835 )
...
* Initial plan
* Implement LogStreamManager for optimized log writing
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Fix error handler in LogStreamManager to avoid race conditions
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-16 21:11:10 +08:00
Copilot
8f23c61fee
Add non-root Docker user support with automatic command setup ( #2830 )
...
* Initial plan
* Add non-root user guide and improve error messages
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add PM2_HOME configuration to fix non-root user permission errors
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Fix PM2 socket error by using /tmp for PM2_HOME instead of mounted volume
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Document symlink permission limitation for non-root users
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Clarify that scheduled tasks auto-adapt to use full paths when symlinks unavailable
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add error handling for symlink creation to prevent worker crashes
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add practical solutions for non-root users to use ql and task commands
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Modify linkCommand to create symlinks in ~/bin for non-root users
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* 修复链接 task 命令
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
Co-authored-by: whyour <imwhyour@gmail.com>
2025-11-15 01:46:24 +08:00
whyour
1deb264913
升级 cron-parser
2025-11-11 00:37:03 +08:00
whyour
06aa07329f
修复日志目录逻辑
2025-11-09 21:42:45 +08:00
Copilot
c369514741
定时任务支持自定义日志文件或者 /dev/null ( #2823 )
...
* Initial plan
* Add log_name field to enable custom log folder naming
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add database migration for log_name column
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add security validation to prevent path traversal attacks
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Apply prettier formatting to modified files
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Support absolute paths like /dev/null for log redirection
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Restrict absolute paths to log directory except /dev/null
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-09 19:32:40 +08:00
whyour
07951964a1
修复模块注入
2025-10-26 22:32:03 +08:00
whyour
50769c43dd
修复 command-run 接口日志绑定
2025-07-12 20:29:44 +08:00
whyour
7d65d96ebd
修复 demo 环境提示
2025-05-24 14:56:49 +08:00
whyour
eb1c00984c
修复任务视图状态包含筛选
2025-05-20 23:40:18 +08:00
whyour
1a185f5682
修复创建脚本可能失败
2025-05-20 01:00:08 +08:00
whyour
8174762c18
demo 环境不自动运行任务
2025-05-08 01:43:14 +08:00
whyour
fa83761d27
修改定时规则类型
2025-02-21 01:35:08 +08:00
whyour
8173075b67
定时任务支持 @once 和 @boot 任务
2025-02-20 02:18:59 +08:00
whyour
496918131f
修复群晖通知参数,任务视图不属于筛选
2025-02-16 12:15:45 +08:00
whyour
25e8e8198d
修改 QLAPI 调用校验
2025-01-30 00:55:48 +08:00
whyour
6df651aa63
更新 ts-proto 版本
2025-01-29 23:29:45 +08:00
whyour
05f8bbd26e
写入文件增加文件锁,避免竞争条件引起文件内容异常
2025-01-04 01:22:29 +08:00
whyour
a41dd74048
修复 task_before/task_after 中换行后 crontab 不识别
2024-08-31 20:46:00 +08:00
whyour
7414a9d33d
执行任务增加结束日志
2024-08-31 14:43:44 +08:00
whyour
8b042d90f3
修复删除日志命令
2024-08-24 22:43:09 +08:00
whyour
90fe63211d
修复修改任务状态可能报错
2024-06-28 20:41:05 +08:00
whyour
46e71d8213
修复系统设置数据未初始化
2024-06-12 13:53:45 +08:00
whyour
c3908e956f
修复下载单文件订阅
2024-06-06 22:40:51 +08:00
whyour
07541569c5
修复定时任务 real_time 参数,升级 protobufjs
2024-06-02 11:08:35 +08:00
whyour
b309ac7613
修复有可能手动运行任务无日志
2024-05-25 00:28:55 +08:00
whyour
445dee00f7
修复脚本和日志列表获取软链接循环失败
2024-04-21 21:59:02 +08:00
whyour
de9e9ce627
webhook 通知 body 增加 text/plain 类型,修复多定时任务服务重启未初始化
2023-11-22 22:43:48 +08:00
whyour
20f615eadf
fs 文件操作替换为 fs.promise
2023-11-01 16:44:34 +08:00
whyour
b90243f55c
修改 task 日志展示逻辑
2023-10-19 21:36:39 +08:00
whyour
00818b694a
使用 spawn exit 方法监听进程退出
2023-10-07 22:51:44 +08:00
whyour
ec5b885476
修改任务队列执行日志
2023-10-06 02:34:40 +08:00
whyour
eddc03e295
修复定时任务间隔较小,任务状态不准确
2023-09-26 22:51:33 +08:00
whyour
99281a061e
修复更新历史定时任务规则未生效
2023-09-24 13:39:52 +08:00
whyour
d7e0531935
修复系统设置展示版本失败
2023-09-23 11:14:24 +08:00
whyour
ab3fc9b5f1
定时任务增加运行任务前和运行任务后参数
2023-09-19 22:44:32 +08:00
whyour
acc7443004
定时任务支持多个定时规则
2023-09-16 00:15:50 +08:00
whyour
461fa8e131
修改系统任务日志
2023-08-29 23:29:02 +08:00
whyour
e2bd15683e
修复 JSON.parse 错误,修复删除环境变量名称过长
2023-08-27 12:41:06 +08:00
whyour
5907553670
修改定时任务置顶样式
2023-08-25 00:46:28 +08:00
whyour
0b9066525a
修复任务运行错误时没有日志,修改 tooltip 样式
2023-08-24 23:14:22 +08:00
whyour
4f7649f157
系统设置增加系统运行日志
2023-08-21 00:10:43 +08:00
whyour
de71d1a258
修复任务筛选条件切换
2023-08-11 22:25:14 +08:00
whyour
e7d023a7e0
支持多语言英文
2023-07-29 18:26:30 +08:00
whyour
39bfd39559
修复任务详情日志列表卡顿
2023-07-27 23:15:48 +08:00
whyour
6832cb4e22
修复 6 位 cron 不以 task 开头运行失败
2023-07-25 22:18:35 +08:00
whyour
f970322f0a
修复定时任务状态筛选
2023-07-02 12:19:34 +08:00
whyour
1718120623
修改更新仓库逻辑
2023-07-01 20:48:28 +08:00
whyour
702c3160ec
修改并发逻辑,系统设置增加定时任务并发设置
2023-07-01 15:26:20 +08:00
whyour
84828865f7
修复依赖安装流程
2023-06-18 15:51:35 +08:00