Scheduling a workflow
For example, let’s define a workflow that creates a backup of some important data daily. Our workflow endpoint might look like this:Schedules
in your QStash dashboard and click Create Schedule
:

Schedule
:

Scheduling a per-user workflow
In order to massively improve the user experience, many applications send weekly summary reports to their users. These could be weekly analytics summaries or SEO statistics to keep users engaged with the platform. Let’s create a user-specific schedule, sending a first report to each user exactly 7 days after they signed up:scheduleId
to ensure the operation is idempotent. (See caveats for more details on why this is important).
Lastly, add the summary-creating and email-sending logic inside of your workflow. For example: