Reordering or updating in number of Event Schedules break deployment
See original GitHub issueThis is a Bug Report
Description
After deploying a function with schedules
, if the order of the registered schedules change (be it because of actual ordering or because due to additions/removals a schedule with index i
became a schedule with index j
), further deployments can’t be performed unless the stack or the stuck resources are removed.
I would rather expect that the schedules are order-agnostic and that the deployment would go through despite of the changes in the schedule
The deployment logs are below.
Additional Data
- Serverless Framework Version you’re using: 1.50.0
- Operating System: MacOS Mojave 10.14.5
- Stack Trace:
- Provider Error messages:
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Excluding development dependencies...
Serverless: Excluding development dependencies...
Serverless: Uploading CloudFormation file to S3..
Serverless: Uploading artifacts...
Serverless: Uploading service two.zip file to S3 (3.08 MB)...
Serverless: Uploading service one.zip file to S3 (3.08 MB)...
Serverless: Uploading service three.zip file to S3 (3.08 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress.
CloudFormation - UPDATE_IN_PROGRESS - AWS::CloudFormation::Stack - project-production
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::Function - TwoLambdaFunction
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::Function - OneLambdaFunction
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::Function - ThreeLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Lambda::Function - TwoLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Lambda::Function - ThreeLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Lambda::Function - OneLambdaFunction
CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - TwoLambdaVersionWd3JK80dXWmbHhVFGMrJccCAx5Kodao3jGJQ5Lb8Ek
CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - ThreeLambdaVersionCvqOmcZL1XCCCxef4Kk2CcJ3ok5xaFAY9WAo04XG0
CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - OneLambdaVersionf1R6UE7K9gussctXIuRUWqvguba3OmqTRUTHn7FWM
CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - TwoLambdaVersionWd3JK80dXWmbHhVFGMrJccCAx5Kodao3jGJQ5Lb8Ek
CloudFormation - CREATE_COMPLETE - AWS::Lambda::Version - TwoLambdaVersionWd3JK80dXWmbHhVFGMrJccCAx5Kodao3jGJQ5Lb8Ek
CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - ThreeLambdaVersionCvqOmcZL1XCCCxef4Kk2CcJ3ok5xaFAY9WAo04XG0
CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - OneLambdaVersionf1R6UE7K9gussctXIuRUWqvguba3OmqTRUTHn7FWM
CloudFormation - CREATE_COMPLETE - AWS::Lambda::Version - ThreeLambdaVersionCvqOmcZL1XCCCxef4Kk2CcJ3ok5xaFAY9WAo04XG0
CloudFormation - CREATE_COMPLETE - AWS::Lambda::Version - OneLambdaVersionf1R6UE7K9gussctXIuRUWqvguba3OmqTRUTHn7FWM
CloudFormation - UPDATE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule6
CloudFormation - UPDATE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule5
CloudFormation - UPDATE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule3
CloudFormation - UPDATE_FAILED - AWS::Events::Rule - OneEventsRuleSchedule6
CloudFormation - UPDATE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule7
CloudFormation - UPDATE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule4
CloudFormation - UPDATE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule1
CloudFormation - UPDATE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule2
CloudFormation - UPDATE_FAILED - AWS::Events::Rule - OneEventsRuleSchedule3
CloudFormation - UPDATE_FAILED - AWS::Events::Rule - OneEventsRuleSchedule5
CloudFormation - UPDATE_FAILED - AWS::Events::Rule - OneEventsRuleSchedule2
CloudFormation - UPDATE_FAILED - AWS::Events::Rule - OneEventsRuleSchedule1
CloudFormation - UPDATE_FAILED - AWS::Events::Rule - OneEventsRuleSchedule4
CloudFormation - UPDATE_FAILED - AWS::Events::Rule - OneEventsRuleSchedule7
CloudFormation - UPDATE_ROLLBACK_IN_PROGRESS - AWS::CloudFormation::Stack - project-production
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::Function - OneLambdaFunction
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::Function - ThreeLambdaFunction
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::Function - TwoLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Lambda::Function - TwoLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Lambda::Function - ThreeLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Lambda::Function - OneLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule5
CloudFormation - UPDATE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule6
CloudFormation - UPDATE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule2
CloudFormation - UPDATE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule1
CloudFormation - UPDATE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule3
CloudFormation - UPDATE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule7
CloudFormation - UPDATE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule4
CloudFormation - UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS - AWS::CloudFormation::Stack - project-production
CloudFormation - DELETE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule6
CloudFormation - DELETE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule3
CloudFormation - DELETE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule5
CloudFormation - DELETE_IN_PROGRESS - AWS::Events::Rule - OneEventsRuleSchedule7
CloudFormation - DELETE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule1
CloudFormation - DELETE_SKIPPED - AWS::Lambda::Version - ThreeLambdaVersionCvqOmcZL1XCCCxef4Kk2CcJ3ok5xaFAY9WAo04XG0
CloudFormation - DELETE_SKIPPED - AWS::Lambda::Version - OneLambdaVersionf1R6UE7K9gussctXIuRUWqvguba3OmqTRUTHn7FWM
CloudFormation - DELETE_SKIPPED - AWS::Lambda::Version - TwoLambdaVersionWd3JK80dXWmbHhVFGMrJccCAx5Kodao3jGJQ5Lb8Ek
CloudFormation - DELETE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule4
CloudFormation - DELETE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule2
CloudFormation - DELETE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule3
CloudFormation - DELETE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule5
CloudFormation - DELETE_COMPLETE - AWS::Events::Rule - OneEventsRuleSchedule7
CloudFormation - UPDATE_ROLLBACK_COMPLETE - AWS::CloudFormation::Stack - project-production
Serverless: Operation failed!
Serverless: View the full error output:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Configure or update an On-Call schedule
Create an On-Call schedule or edit an existing schedule by defining shifts and rosters.
Read more >10. Fundamental Scheduling Procedures
Many owners require detailed construction schedules to be submitted by contractors as a means of monitoring the work progress. The actual work performed...
Read more >Process schedules - Boomi AtomSphere Documentation
A process must be deployed to an Atom, Molecule, or Atom Cloud to run on a schedule. A schedule starts as soon as...
Read more >Lifecycles - Octopus Deploy
Recommendations · Update the default lifecycle to define the phases you need. · Keep the number of environments under ten to keep the...
Read more >Scheduled Events | Mendix Documentation
The event has interval type Seconds — use a schedule event with a 1-minute interval instead — we no-longer support scheduled events which...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes
@gnomeria Thank you very much! I completely forgot I opened this issue (even had a local branch with the solution).
I like your solution, and it is pretty similar to what I had in mind.
I would love to have this merged and am looking forward to it 😃