AMI-system / ami_setup

AMI configuration files
MIT License
0 stars 2 forks source link

Error if first_minute of last recording job is greater than the end_time.minute #6

Closed gls21 closed 11 months ago

gls21 commented 1 year ago

Get range error if the first_minute of last recording job is greater than the end_time.minute. E.g. first_minute = 4, but end_time.minute = 2. So get range of 4-2 for cronjob minutes, which isn't allowed.

Found this issue by chance while testing solutions for the error occuring when the schedules crossed midnight. Thought it was something wrong with the crossing midnight still, but turned out to be a new issue.

gls21 commented 11 months ago

Added in a catch to the determine_times_birdpi.py script so it doesn't make the final cronjob if the end_time.minute is less than the first minute that it's meant to record for that hour.