Skip to content

Commit f63d58c

Browse files
committed
Revert "refresh only active"
This reverts commit 65db0e2.
1 parent 65db0e2 commit f63d58c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ScheduledTasks/Entity/Schedule.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,8 @@ public void CreateSchedule(TaskEntityContext context, ScheduleCreationOptions sc
4747
if (alreadyExists)
4848
{
4949
this.State.ScheduleLastModifiedAt = DateTimeOffset.UtcNow;
50-
if (this.State.Status == ScheduleStatus.Active)
51-
{
52-
this.State.RefreshScheduleRunExecutionToken();
53-
this.State.NextRunAt = null;
54-
}
50+
this.State.RefreshScheduleRunExecutionToken();
51+
this.State.NextRunAt = null;
5552
}
5653
else
5754
{

0 commit comments

Comments
 (0)