qinglong/back
copilot-swe-agent[bot] b33d994316 Re-register cron jobs when gRPC worker restarts
When the gRPC worker restarts, the scheduled tasks need to be re-added to the new gRPC server instance. This fix:

1. Tracks the HTTP worker reference in the master process
2. Sends a 'reregister-crons' message to the HTTP worker after gRPC restarts
3. HTTP worker calls autosave_crontab() to re-register all cron jobs with the new gRPC server

This ensures scheduled tasks continue to work after a gRPC worker restart.

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-11 16:48:25 +00:00
..
api Add validation to dependencies GET endpoint and update service logic (#2778) 2025-10-11 23:23:13 +08:00
config 移除 nginx 2025-11-02 19:29:59 +08:00
data QLAPI.systemNotify 支持自定义通知类型和参数 2025-06-24 02:00:51 +08:00
interface 修改定时规则类型 2025-02-21 01:35:08 +08:00
loaders 修复 jwt 认证 2025-11-02 22:28:58 +08:00
middlewares 修改服务启动逻辑 2025-05-07 09:30:00 +08:00
protos QLAPI.systemNotify 支持自定义通知类型和参数 2025-06-24 02:00:51 +08:00
schedule 修复模块注入 2025-10-26 22:32:03 +08:00
services 修复模块注入 2025-10-26 22:32:03 +08:00
shared 修复创建脚本可能失败 2025-05-20 01:00:08 +08:00
types 修改服务启动逻辑 2025-05-07 09:30:00 +08:00
validation 修改定时规则类型 2025-02-21 01:35:08 +08:00
app.ts Re-register cron jobs when gRPC worker restarts 2025-11-11 16:48:25 +00:00
token.ts 修改服务启动逻辑 2025-05-07 09:30:00 +08:00
tsconfig.json 修改服务启动逻辑 2025-05-07 09:30:00 +08:00