#4306 [Housekeeping] Flytescheduler should read in only the active schedules
Issue created by
pmahindrakar-oss
Describe the issue
Currently flytescheduler reads in all the schedules from the DB and then based on the activation state deactivates or activates the schedule.
This becomes problematic with the large number of schedules in the DB which have less number of active schedules.
Proposal is to read only the active schedules from the DB and deactivate all the in-memory jobs which are not part of this set.
What if we do not do this?
Could face performance issues on large schedule data
Related component(s)
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyte