Is there a way to delay a workflow execution?

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

Steve Juth : Hi Everyone! I’m looking to invoke a data export from LeadFeeder via their API. Since this job could take a minute or two to process (once per day), I’d rather not poll for it. Is there a (preferred) way in Pipedrive to delay a workflow for ~5 minutes so I can then download my data (assuming it’s ready)? I should also ask: what is the maximum amount of time a workflow can run?

Dylan Sather (Pipedream) : Hi , take a look at this doc. That’s the recommended way to delay the execution of a workflow, and you can even use that same technique to delay your workflow again if you poll the job status and it’s not done the first time (in that case, you’d just schedule your workflow to run again in another N min).

A workflow can also run for up to a maximum of 5 minutes right now. If you visit the Settings tab at the top of your workflow, you’ll see the Timeout setting. That defaults to 30 seconds, but can be raised to 300.

Dylan Sather (Pipedream) : Let me know if that helps

Steve Juth : I’ll take a look soon - thanks!

Steve Juth : Hey I got my delayed workflow working today! Thanks again for the help. :slightly_smiling_face:

Dylan Sather (Pipedream) : Great! Glad to hear