mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 13:15:55 +03:00
[GH-ISSUE #790] [Bug] 工作流卡在等待执行或执行中状态 #536
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#536
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chsword on GitHub (Jun 13, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/790
软件版本 / Release Version
v0.3.17
缺陷描述 / Description
1. 定时任务超过执行时间却不执行
2. 定时任务出间出错了却一直显示正在执行
注:截图时间是6月13日
复现步骤 / Steps to reproduce
设置自动触发
日志 / Logs
其他 / Miscellaneous
No response
贡献 / Contribution
@fudiwei commented on GitHub (Jun 13, 2025):
看一下是否跟 #769 情况一样
@chsword commented on GitHub (Jun 13, 2025):
@fudiwei 其中一种是一样的表现,另外一种是完全不运行
@fudiwei commented on GitHub (Jun 13, 2025):
升级到 v0.3.17 后还有 panic 吗?有的话贴一下终端输出
@chsword commented on GitHub (Jun 16, 2025):
@fudiwei v0.3.17 后还未发现,我再观察一下
@chsword commented on GitHub (Jun 21, 2025):
3.1.18 后仍然有错误
第一类是,任务是被卡在
类似的位置
我先尝试添加两个索引,看看能不能解决
第二类是

一直在运行
@fudiwei commented on GitHub (Jun 22, 2025):
麻烦问一下
workflow_output这张表你现在有多少行数据了?@chsword commented on GitHub (Jun 23, 2025):
@fudiwei 不到200行
增加了新索引和重新生成所有索引后暂时还没有发生类似问题
建议可以增加一个数据库的系统管理,重建索引,以防止碎片生成影响性能
@chsword commented on GitHub (Jul 1, 2025):
@fudiwei
升级至 v0.3.19 -v0.3.20
以下这种就是没有执行完,有很多种情况,都是显示到某一步,也没有出错,但是已经超出时间很久了

这个是以前版本就有的错误,仍然复现

这个应该还是老问题
@chsword commented on GitHub (Jul 1, 2025):
对于最后一种等待执行的,我只能等下一个周期,或取消后手动执行
@fudiwei commented on GitHub (Jul 1, 2025):
看起来还是大部分跟 SQL 查询超时有关,至于为什么会超时这个还有待排查。
我注意到你的大部分工作流触发时间都是同一时间点,可以尝试把它们设为不同的时间再观察看看。
@chsword commented on GitHub (Jul 1, 2025):
我先分散开看看
@chsword commented on GitHub (Jul 3, 2025):
@fudiwei 分散开来,暂时没有发现问题
但是同时执行的量应该也不大,一共十几个工作流,所以应该还是并发或数据库的问题
@fudiwei commented on GitHub (Oct 10, 2025):
@chsword 可以观察下升级到 v0.4 是否还有此问题
@chsword commented on GitHub (Oct 10, 2025):
好的,我当前的解决方法是小时,还有分钟都按照质数的关系递增,这样可以让大家错峰出行
@Yeqingky commented on GitHub (Oct 23, 2025):
版本: v0.4.0 遇到类似问题