I have a workflow with a sleep step that was due to run until 2025-11-28T15:00:00.000Z but when that time was reached, the next step in the workflow didn’t run.
Tried reporting this as a bug but apparently Vercel’s support isn’t interested. They directed me here but not sure how anyone will be able to help 🤷
It’s configured like this -
const appointmentTime = new Date(bookingStartTime); const twentyFourHoursBefore = new Date( appointmentTime.getTime() - 24 * 60 * 60 * 1000 ); // Sleep until 24 hours before the appointment - this sleep step is shown in the dashboard await sleep(twentyFourHoursBefore); // Check if the booking is still active - this wasn't logged console.log(`[Workflow] Checking booking status for ${bookingUid}`); const bookingStatus = await checkBookingStatus(bookingUid, bookingStartTime); ...So the resumeAt is:
{ "resumeAt": "2025-11-28T10:00:00.000Z"}Documentation - https://useworkflow.dev/docs/api-reference/workflow/sleep#sleeping-until-an-end-date