add a new function get_cron_schedules for filtering cron schedules