[GH-ISSUE #1086] [Bug] 工作流有时候会重复执行 #732

Closed
opened 2026-03-03 01:05:35 +03:00 by kerem · 5 comments
Owner

Originally created by @ouchonghui on GitHub (Dec 5, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1086

Release Version / 软件版本

v0.4.7

Description / 缺陷描述

有时候会重复执行,目前没有发现规律。

今天的正常,但是另一个工作流重复执行了

Image

昨天的重复执行

Image

前天的也重复执行

Image

Steps to reproduce / 复现步骤

查看工作流日志

Logs / 日志

12-05的

[2025-12-05 06:00:00]
workflow run #9v429rlqspsxc0k (work#px5anxkcbkcgi0k) stopped
[2025-12-05 06:00:00]
workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) stopped
[2025-12-05 06:00:00]
workflow run #9v429rlqspsxc0k (work#px5anxkcbkcgi0k) started
[2025-12-05 06:00:00]
workflow run #9v429rlqspsxc0k (work#px5anxkcbkcgi0k) is being dispatched ...
[2025-12-05 06:00:00]
workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) stopped
[2025-12-05 06:00:00]
workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) started
[2025-12-05 06:00:00]
workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) started
[2025-12-05 06:00:00]
workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) is being dispatched ...
[2025-12-05 06:00:00]
workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) is being dispatched ...

12-04的

[2025-12-04 06:00:00]
workflow run #vp1xbmukgerqydq (work#57fj5o965fs5rxy) stopped
[2025-12-04 06:00:00]
workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) stopped
[2025-12-04 06:00:00]
workflow run #vp1xbmukgerqydq (work#57fj5o965fs5rxy) started
[2025-12-04 06:00:00]
workflow run #vp1xbmukgerqydq (work#57fj5o965fs5rxy) is being dispatched ...
[2025-12-04 06:00:00]
workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) stopped
[2025-12-04 06:00:00]
workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) started
[2025-12-04 06:00:00]
workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) started
[2025-12-04 06:00:00]
workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) is being dispatched ...
[2025-12-04 06:00:00]
workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) is being dispatched ...

12-03的

[2025-12-03 06:00:00]
workflow run #zp5vsn6d1wqvc8u (work#57fj5o965fs5rxy) stopped
[2025-12-03 06:00:00]
workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) stopped
[2025-12-03 06:00:00]
workflow run #zp5vsn6d1wqvc8u (work#57fj5o965fs5rxy) started
[2025-12-03 06:00:00]
workflow run #zp5vsn6d1wqvc8u (work#57fj5o965fs5rxy) is being dispatched ...
[2025-12-03 06:00:00]
workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) stopped
[2025-12-03 06:00:00]
workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) started
[2025-12-03 06:00:00]
workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) started
[2025-12-03 06:00:00]
workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) is being dispatched ...
[2025-12-03 06:00:00]
workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) is being dispatched ...

Miscellaneous / 其他

No response

Contribution / 贡献代码

  • I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Originally created by @ouchonghui on GitHub (Dec 5, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1086 ### Release Version / 软件版本 v0.4.7 ### Description / 缺陷描述 有时候会重复执行,目前没有发现规律。 今天的正常,但是另一个工作流重复执行了 <img width="675" height="495" alt="Image" src="https://github.com/user-attachments/assets/e681de0b-a925-4072-b9ea-eed101d17fe0" /> 昨天的重复执行 <img width="700" height="329" alt="Image" src="https://github.com/user-attachments/assets/54ddccc6-cbb5-4c9e-aacd-c47e4d3f51a3" /> 前天的也重复执行 <img width="689" height="377" alt="Image" src="https://github.com/user-attachments/assets/592be858-8584-455e-a7b8-bb0d8b1ea77a" /> ### Steps to reproduce / 复现步骤 查看工作流日志 ### Logs / 日志 <details> 12-05的 ```console [2025-12-05 06:00:00] workflow run #9v429rlqspsxc0k (work#px5anxkcbkcgi0k) stopped [2025-12-05 06:00:00] workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) stopped [2025-12-05 06:00:00] workflow run #9v429rlqspsxc0k (work#px5anxkcbkcgi0k) started [2025-12-05 06:00:00] workflow run #9v429rlqspsxc0k (work#px5anxkcbkcgi0k) is being dispatched ... [2025-12-05 06:00:00] workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) stopped [2025-12-05 06:00:00] workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) started [2025-12-05 06:00:00] workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) started [2025-12-05 06:00:00] workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) is being dispatched ... [2025-12-05 06:00:00] workflow run #dockoocb19yfxgo (work#57fj5o965fs5rxy) is being dispatched ... ``` 12-04的 ```console [2025-12-04 06:00:00] workflow run #vp1xbmukgerqydq (work#57fj5o965fs5rxy) stopped [2025-12-04 06:00:00] workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) stopped [2025-12-04 06:00:00] workflow run #vp1xbmukgerqydq (work#57fj5o965fs5rxy) started [2025-12-04 06:00:00] workflow run #vp1xbmukgerqydq (work#57fj5o965fs5rxy) is being dispatched ... [2025-12-04 06:00:00] workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) stopped [2025-12-04 06:00:00] workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) started [2025-12-04 06:00:00] workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) started [2025-12-04 06:00:00] workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) is being dispatched ... [2025-12-04 06:00:00] workflow run #2rnbmltq1hdfixe (work#px5anxkcbkcgi0k) is being dispatched ... ``` 12-03的 ```console [2025-12-03 06:00:00] workflow run #zp5vsn6d1wqvc8u (work#57fj5o965fs5rxy) stopped [2025-12-03 06:00:00] workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) stopped [2025-12-03 06:00:00] workflow run #zp5vsn6d1wqvc8u (work#57fj5o965fs5rxy) started [2025-12-03 06:00:00] workflow run #zp5vsn6d1wqvc8u (work#57fj5o965fs5rxy) is being dispatched ... [2025-12-03 06:00:00] workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) stopped [2025-12-03 06:00:00] workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) started [2025-12-03 06:00:00] workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) started [2025-12-03 06:00:00] workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) is being dispatched ... [2025-12-03 06:00:00] workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) is being dispatched ... ``` </details> ### Miscellaneous / 其他 _No response_ ### Contribution / 贡献代码 - [ ] I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
kerem 2026-03-03 01:05:35 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@fudiwei commented on GitHub (Dec 8, 2025):

“重复执行”是指什么?定时触发在同一时间触发了多次运行吗?

<!-- gh-comment-id:3624488204 --> @fudiwei commented on GitHub (Dec 8, 2025): “重复执行”是指什么?定时触发在同一时间触发了多次运行吗?
Author
Owner

@ouchonghui commented on GitHub (Dec 8, 2025):

“重复执行”是指什么?定时触发在同一时间触发了多次运行吗?

是的,就像我日志截图里的那个工作流,我配置的每天6点触发,有时候它会像日志里一样,在6点同时触发了两次,

[2025-12-03 06:00:00]
workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) is being dispatched ...
[2025-12-03 06:00:00]
workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) is being dispatched ...
<!-- gh-comment-id:3625294163 --> @ouchonghui commented on GitHub (Dec 8, 2025): > “重复执行”是指什么?定时触发在同一时间触发了多次运行吗? 是的,就像我日志截图里的那个工作流,我配置的每天6点触发,有时候它会像日志里一样,在6点同时触发了两次, ``` [2025-12-03 06:00:00] workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) is being dispatched ... [2025-12-03 06:00:00] workflow run #fv60hzuqvwcphpi (work#px5anxkcbkcgi0k) is being dispatched ... ```
Author
Owner

@fudiwei commented on GitHub (Dec 9, 2025):

问个问题,你 cron 是同一时间的工作流有几个?

<!-- gh-comment-id:3630296490 --> @fudiwei commented on GitHub (Dec 9, 2025): 问个问题,你 cron 是同一时间的工作流有几个?
Author
Owner

@ouchonghui commented on GitHub (Dec 9, 2025):

5点两个,6点两个

<!-- gh-comment-id:3630738202 --> @ouchonghui commented on GitHub (Dec 9, 2025): 5点两个,6点两个
Author
Owner

@fudiwei commented on GitHub (Dec 11, 2025):

未复现问题,但尝试调整了一些加锁的地方,麻烦升级到 v0.4.9 再观察一下。

<!-- gh-comment-id:3642101028 --> @fudiwei commented on GitHub (Dec 11, 2025): 未复现问题,但尝试调整了一些加锁的地方,麻烦升级到 v0.4.9 再观察一下。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#732
No description provided.