Is it possible to run a workflow at a specific time, for example: at 2pm tomorrow?

This topic was automatically generated from Slack. You can find the original thread here.

Chuah Shang Rong : Hi, is there anyway to run a workflow on a specific period of time? For example, when a user register for my program, pipedream will send an email to the user on a scheduled date ? For example, 2pm the next day.

Any help is appreciated, thanks :blush:

Dylan Sather (Pipedream) : Hi , yes, take a look at our docs on the Pipedream task scheduler: https://docs.pipedream.com/examples/waiting-to-execute-next-step-of-workflow/ . We’re planning to make this simpler in the future, but let me know if that works for you

Chuah Shang Rong : Hi , based on my understanding, the task scheduler will delay the execution of the workflow for X number of seconds.

Is it possible to schedule the execution of workflow based on a date instead of seconds ?

Dylan Sather (Pipedream) : The task scheduler technically accepts an ISO timestamp that tells it when to trigger the associated workflow. You’re correct that those docs highlight how to use that action to schedule an execution N seconds in the future, but you can compute your own date / time and schedule the workflow to run then. Take a look at https://github.com/PipedreamHQ/pipedream/blob/master/components/pipedream/sources/new-scheduled-tasks/README.md for more information and let me know if that helps

Dylan Sather (Pipedream) : I just wanted to check in to see if this worked for you. Let me know if you need any more help