-
-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command line option for disabling scheduled events. #1185
Conversation
I'd love to see this released! Unfortunately even if it is released I'm unable to update until this issue, #1119, is addressed. |
Any reason this isn't being merged?? |
@james-relyea thanks for pinging. Can you rebase against |
I need to rebase and push this again - will do that today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @james-relyea it looks very good. I have just one comment
disableScheduledEvents: { | ||
usage: | ||
'Disables all scheduled events. Overrides configurations in serverless.yml.', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It misses a type
property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, amended that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, looks great 👍
I see this was merged yesterday, do you have an ETA on when you'll be tagging master? |
@mrollinsiv new release went out on Friday |
was this feature ever merged? it is not available in 13.1 |
The argument is shown in Serverless offline page : https://www.serverless.com/plugins/serverless-offline#usage-and-command-line-options but it's not present in main branch and is not available in latest version (13.3.3). It is normal @medikoo ? |
@throrin19 I'm no longer maintaining this project. I believe it's @dnalborczyk who is covering it now, and can probably answer this question |
Description
Add support for using
--disableScheduledEvents
from the command line to force all scheduled events to become disabled. Resolves Disable scheduled functions #1123.Also included a fix for husky pre-commit lint error I was receiving while trying to create this PR by moving the :
Motivation and Context
During development some of us are wanting to disable all scheduled events from being scheduled without also needing to modify our
serverless.yml
.How Has This Been Tested?
Tested out a
serverless.yml
configuration with a scheduled event configuration:While starting with
serverless offline --disableScheduledEvents
, confirmed that none of the enabled events were triggered. With that option not specified, confirmed thattestEvent1
andtestEvent2
were triggered relative to theirrate
configuration.