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
whyour
d01ec3b310
修复 parse cron
2025-11-15 19:09:07 +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
1a185f5682
修复创建脚本可能失败
2025-05-20 01:00:08 +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
418695c4aa
定时任务支持复制
2024-09-24 23:33:04 +08:00
whyour
b8a9b26ca3
修复定时任务任务前后命令校验
2023-10-12 00:55:22 +08:00
whyour
99f6073c8e
定时任务增加前后规则校验,不能包含 task 命令
2023-10-10 23:06:01 +08:00
whyour
ec5b885476
修改任务队列执行日志
2023-10-06 02:34:40 +08:00
whyour
ab3fc9b5f1
定时任务增加运行任务前和运行任务后参数
2023-09-19 22:44:32 +08:00
whyour
acc7443004
定时任务支持多个定时规则
2023-09-16 00:15:50 +08:00
whyour
40e8041401
修复退出调试自动删除调试日志目录
2023-08-22 22:18:18 +08:00
whyour
b1a242c8ee
更新多语言
2023-08-05 12:33:43 +08:00
whyour
e7d023a7e0
支持多语言英文
2023-07-29 18:26:30 +08:00
whyour
39bfd39559
修复任务详情日志列表卡顿
2023-07-27 23:15:48 +08:00
whyour
efd4f1d5ab
umi-request 替换为 axios
2023-07-17 23:13:06 +08:00
whyour
679091de59
修改定时任务输入提示
2023-01-31 17:41:35 +08:00
whyour
a5075ab28f
修改新建任务命令提示
2023-01-11 22:14:32 +08:00
whyour
66df445bd5
修改添加任务命令提示
2023-01-04 17:28:26 +08:00
whyour
f2fea47336
重构前端错误提示
2022-09-22 23:59:23 +08:00
whyour
518e8903a3
兼容Modal属性
2022-09-17 22:50:58 +08:00
whyour
6e56a55f6f
修改弹框表单逻辑
2022-09-16 00:28:04 +08:00
whyour
05cf51afa0
新建订阅支持粘贴导入
2022-05-25 01:09:05 +08:00
whyour
456b4c4136
修复根组件刷新异常
2022-05-21 11:51:16 +08:00
whyour
460a1750f4
增加初始化订阅任务
2022-05-18 23:30:59 +08:00
whyour
ebb6290468
增加新建订阅
2022-05-10 14:38:06 +08:00
whyour
22d097aa08
修改定时任务添加标签交互
2022-05-01 13:51:33 +08:00
whyour
6fab22099d
修复更新定时任务
2022-01-13 14:37:56 +08:00
whyour
e75a683173
修复sqlite数据操作类型
2022-01-08 01:09:38 +08:00
kilo5hz
89ed8527d6
添加标签功能 ( #1026 )
...
* 添加标签功能
2022-01-07 22:01:13 +08:00
whyour
5d19ee0ab5
使用sqlite替换nedb
2022-01-06 22:51:12 +08:00
whyour
a29392bb08
修改文本
2021-12-23 13:39:16 +08:00
hanhh
686baa56f4
增加环境变量名称正则校验
2021-10-06 16:38:46 +08:00
hanhh
bb40111d38
添加环境变量命令input改为textarea
2021-09-05 23:38:36 +08:00
hanhh
0a6c7e3719
修复弹出数据不重置
2021-06-27 00:19:48 +08:00
hanhh
e28d84dc6b
antd notification改为message
2021-05-24 23:29:35 +08:00
whyour
5b3687f7b6
全新青龙2.0 ( #65 )
...
* 重构shell (#17 )
* 更新正则
* 更新update命令
* 移除测试代码
* 重构删除日志命令
* 更新entrypoint
* 更新dockerfile
* 完善shell调用
* 修复share shell引用
* 修复entrypoint
* 修复share shell
* 修复share.sh
* 修改依赖重装逻辑
* 更新docker entrypoint
* curl 使用静默模式
* 更新ql raw
* 修复添加单个任务
* 修复shell语法
* 添加定时任务进程
* 更新默认定时任务
* 更新定时任务重启schedule
* 更新青龙重启逻辑
* 修复定时任务列表创建
* 修复schedule进程
* 修复entrypoint
* 更新task命令
* pm2 restart替换成reload
* 修复task命令参数引入
* 完善ql repo命令
* 修复update.sh
* 更新ql repo命令
* ql repo添加登录验证,修复package.json示例
* 修复定时任务命令补全
* 修改默认cron端口
* 修复cron日志弹框异常
* 修改cron新建label
* 修复ql repo命令
* 修复cron格式验证
* 修改日志目录格式
* 修改青龙remote url
* 修复添加定时cron匹配
* 添加定时任务超时时间设置
* 暂时移除timeout命令
* 恢复定时任务timeout
* 修复cookie.sh引用
* 修复shell变量自加
* 修复ck更新状态同步
* 增加tg bot测试,修改增删任务通知
* 修复shell函数返回值
* 修改添加任务日志打印
* 修改entrypoint日志
* 修复api日志打印
* 修改api日志打印
* 定时任务支持批量启用禁用删除运行
* 修改cron管理操作按钮响应样式
* 更新bot启动脚本
* 更新bot启动脚本
* 增加timeout默认值,修改session管理逻辑
* 更新config示例和通知日志
* 更新bot.sh
* 更新启动bot命令
* 更新启动bot命令
* 修复task运行参数合并
* 增加停止定时任务功能
* 修复停止定时任务api
* 更新停止定时任务日志
* 更新停止任务日志
* 修复删除cron api
* 更新删除cron通知文本
* 更新命令提示
* 更新bot启动脚本
2021-05-10 20:47:23 +08:00
whyour
947a753610
修复更新cron , fix #32
2021-04-11 20:46:47 +08:00
whyour
f9c299cfbe
修复添加ck和cron未更新列表
2021-04-10 13:48:44 +08:00
whyour
21d164218f
修复修改任务后没有充值模态框字段
2021-04-05 00:13:50 +08:00
whyour
8a45599919
全新定时任务管理
2021-04-03 16:39:10 +08:00