mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
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:
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());
|
||||
|
||||
Reference in new issue
Block a user