aws-solutions / instance-scheduler-on-aws

A cross-account and cross-region solution that allows customers to automatically start and stop EC2 and RDS Instances

Home Page:https://aws.amazon.com/solutions/implementations/instance-scheduler-on-aws/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Period not working

ku1918 opened this issue · comments

Hi all,

I am trying to configure a scheduler that contain multiple period.

  1. 9AM to 6PM
  2. 1130PM to 1230AM(next day)

The issue I am facing is the solution giving me "Any" State. Hence the scheduler is not working when i define multiple period.

My Config is as follow:
image
image
image

This is the logs
image

hi @ku1918, Thanks for reaching out!

This is a known issue that can occur when combining 1-sided start/stop periods with other periods. We're investigating possible solutions, but for now the current workaround would be to change your two midnight periods to be full periods instead of 1-sided (i.e. start 23:30, stop 24:00, and start 0:00, stop 0:30).

Please let us know if this does not work for you.

@CrypticCabub , you mean the issue being 23:30 cross over the next day?

So I need to have 3 period under 1 schedule.

  1. 9-6
  2. 1130-12
  3. 12-1230

Is that what you saying?

@ku1918, yes, you would need to have 3 periods like you describe to achieve the behavior you want.

The current scheduling logic looks at each day as individual a 24-hour periods. So to achieve a running period that crosses midnight you would need to have a running period at the end of the first day and at the start of the following day.