Add support for checking for cron_schedules in closures