How to print the next 10 scheduled dates to validate my schedule is set up correctly?

To test your schedule, you can use the get_dates(n, start, end) function to retrieve the next n scheduled dates while optionally specifying the time window via start and end date.

Here is the code you may use:

import asyncio
from prefect.orion.schemas.schedules import CronSchedule

async def validate_schedule():
    schedule = CronSchedule(cron="*/5 * * * *", timezone="Europe/Berlin")
    response = await schedule.get_dates(10)

if __name__ == "__main__":

To see how you can test complex schedules define via rrule, check this Discourse topic: