shunfei/cronsun

计划任务在某一个节点执行两次,两次相差1S

Opened this issue · 0 comments

Please answer these questions before submitting your issue. Thanks!
在你提交 issue 前,请先回答以下问题,谢谢!

  1. What version of Go and cronsun version are you using?
    你用的是哪个版本的 Go 和 哪个版本的 cronsun?
    go版本: go1.14.4
    cronsun版本:v0.3.5

  2. What operating system and processor architecture are you using (go env)?
    你用的是哪个操作系统,什么架构的?
    centos7 / x86_64

  3. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    你做了什么,遇到了什么问题?尽可能描述清楚问题,最好把操作步骤写下来,按这些步骤操作后能重现你的问题。
    1、我这边添加了一个计划任务每天 00点 25分 30秒执行,同时在多个节点执行
    2、其中一个节点经常执行两次, 00点 25分 29秒执行一次,00点 25分 30秒执行一次
    3、期间排查节点clock时钟和系统时间不一致,执行clock时钟和系统时间同步后问题依然存在

  4. What did you expect to see?
    你期望得到什么样的结果?
    一个节点只会执行一次

  5. What did you see instead?
    现在你得到的结果是什么样的?
    一个节点只会执行两次次