fix(scheduler): keep a schedule's account across UpdateSchedule (#4258)

UpdateSchedule rebuilt the schedule without its account id, so an updated
schedule with ActionAfterCompletion=DELETE was no longer found in its own
account when it completed and was never deleted.
This commit is contained in:
Niels Kootstra authored and GitHub committed 2026-09-23 18:26:21 -04:00
1 parent 1027f0a602
commit a624608b5d
2 files changed
+58

No files matched your search

@@ -239,6 +239,7 @@ public class SchedulerService {
Schedule updated = new Schedule();
updated.setName(req.getName());
updated.setArn(existing.getArn());
updated.setAccountId(existing.getAccountId());
updated.setGroupName(effectiveGroup);
updated.setState(req.getState() != null ? req.getState() : "ENABLED");
updated.setScheduleExpression(req.getScheduleExpression());