Skip to content

Commit f217f13

Browse files
committed
Merge branch '4.90-bug-fixes' into develop
2 parents 8b1b339 + 0ae3478 commit f217f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Libraries/Nop.Services/ScheduleTasks/ScheduleTaskRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public virtual async Task ExecuteAsync(ScheduleTask scheduleTask, bool forceRun
126126
return;
127127

128128
//validation (so nobody else can invoke this method when he wants)
129-
if (scheduleTask.LastStartUtc.HasValue && (DateTime.UtcNow - scheduleTask.LastStartUtc).Value.TotalSeconds < scheduleTask.Seconds)
129+
if (scheduleTask.LastStartUtc.HasValue && Math.Round((DateTime.UtcNow - scheduleTask.LastStartUtc).Value.TotalSeconds, 0) < scheduleTask.Seconds)
130130
//too early
131131
return;
132132
}

0 commit comments

Comments
 (0)