If the timezone has changed then we need to reschedule the next scheduled run
This commit is contained in:
@@ -215,7 +215,8 @@ export class UpsertTaskScheduleService extends BaseService {
|
||||
});
|
||||
|
||||
const scheduleHasChanged =
|
||||
scheduleRecord.generatorExpression !== existingSchedule.generatorExpression;
|
||||
scheduleRecord.generatorExpression !== existingSchedule.generatorExpression ||
|
||||
scheduleRecord.timezone !== existingSchedule.timezone;
|
||||
|
||||
// find the existing instances
|
||||
const existingInstances = await tx.taskScheduleInstance.findMany({
|
||||
|
||||
Reference in New Issue
Block a user