Open lyricnz opened 3 months ago
Looking at the regex, it looks like the day part requires both a startday and stopday
this.re = new RegExp(`(${component}=([0-9]{1,2}:[0-9]{1,2}))(\\|([a-z]{3}-[a-z]{3}))?`);
So the schedule should read
schedule: "Start=11:00|mon-mon;Stop=13:00|mon-mon"
Q: Why didn't this generate an error?
Using powercycleCentral with configuration of:
the workload was started at 11am Wednesday with the following message:
2024-04-03T00:00:00.000Z,554096786507,aws-ecp-main-workload-innovation-6,powercycleCentral,rdsCluster,rds,cloudsnooze-test-rds-cluster,start,success,"[aws-ecp-main-workload-innovation-6: cluster DB]: It's Wed 11:00 +11, availability is from 11:00 till 13:00 all week"