I am using python 3.6 & schedule module and needs to schedule a task to run every minute between two time intervals for some specific days of week. For instance, say task is meant to be scheduled for every minute for 2.5 hours time interval of 11:00 PM to 01:30 AM for every Wednesday and Friday. It should be run for every minute between two given time intervals, it should be stopped!
What I have tried:
I tried using
schedule.every(1).minutes.do(job)
insideschedule.every().day.at("11:00").do(job)
I have built logic to successfully select days of my choice and they can be made available to schedule logic.
But,
That does not stops at specified time and I could not get how to introduce end time limit.
I could not get how to schedule it for 11:00 PM to 01:30 AM, I could not get how to tell it that 01:30 AM comes after 11:00 PM in night.
I do not have any idea about how to schedule it for the days of my choice.
Any help?