HangfireIO / HangfireIO/Hangfire

hangfire+mysql定时任务会多次重复执行

Open
#1,990 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

例如我增加了每天凌晨三点的定时任务:
RecurringJob.AddOrUpdate(() => _functionDemo(), "0 0 3 ? * *", TimeZoneInfo.Local, Environment.MachineName.ToLower());
但是执行记录里面在以下三个时间段分别执行了一次:
2022-01-08 03:00:05.258 +08:00 [Information] 开启任务
2022-01-08 03:30:05.588 +08:00 [Information] 开启任务
2022-01-08 04:00:06.554 +08:00 [Information] 开启任务
每一次大约间隔了半个小时

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.