PipedreamHQ / PipedreamHQ/pipedream

Pi improvement: How can I add a delay in a Node.js step within a workflow triggered by a webhook?

Open
#8,813 0 comments 0 reactions 0 assignees View on GitHub
pi tracked internally triaged
Dominant language
JavaScript
Stars
11.7k
Forks
5.8k
Avg merge
3d 10h
Merged PRs (30d)
102

Description

The original user asked how to run a workflow from within a Node.js step with a delay, while mentioning that the workflow is triggered by a webhook. Pi answered by providing an example of how to add a delay in a Node.js step using the `delay` function provided by Pipedream. Pi also mentioned that for a webhook-triggered workflow, a new workflow can be created with the trigger set to "HTTP / Webhook" and the unique URL generated can be used to trigger the workflow by making an HTTP request to that URL. Additionally, Pi clarified that it is not possible to directly call another workflow from within a Node.js step and suggested making an HTTP request to the webhook URL of the target workflow instead.

See the original Slack thread [here](https://pipedream-users.slack.com/archives/CPTJYRY5A/p1699025158320109?thread_ts=1699025158.320109&cid=CPTJYRY5A).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.