Skip to content
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

"Property 'functions[].events[].schedule.timezone' already have a definition" error on startup for serverless version >= v.3.31.0 #35

Open
ismailozgen opened this issue Apr 30, 2024 · 5 comments

Comments

@ismailozgen
Copy link

ismailozgen commented Apr 30, 2024

As of serverless v3.31.0; implementation of AWS::Scheduler::Schedule instead of AWS::Event::Rule commit is causing the following error on startup (sls) when it's used in conjunction with serverless-local-schedule plugin

Property 'functions[].events[].schedule.timezone' already have a definition - this property might have already been defined by the Serverless framework or one other plugin

@DanielMutu
Copy link

I'm using version of Serverless 4.1.3 and I confirm the error

@QuangHuyy
Copy link

I'm using Serverless version 3.38.0 and I have the same error

@Iryna-Tyshchuk
Copy link

when trying to migrate from version 3.28.1 to version 3.38.0 got the same error

@alexw23
Copy link

alexw23 commented Jul 8, 2024

Same here!

@alexw23
Copy link

alexw23 commented Jul 8, 2024

These are the lines it's clashing with, where Timezone was added in to support the scheduler.

The only option would be to rename the timezone field, or to stop enforcing the schema if it's already defined.

But I do wonder if this package has any use now given the core now supports AWS::Scheduler::Schedule which supports timezone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants