feature: add a default branch when a suspended flow timeout

Open
#3,541 1 comment 0 reactions 1 assignee View on GitHub

@rubenfiszel is already working on this.

Since Apr 12, 2024.

Assessment

This issue has not been assessed yet.

Description

release: 1.496.0 release: 1.501.4 release: 1.505.1 release: 1.513.1 release: 1.535.0 release: 1.549.0 release: 1.555.0 release: 1.560.0 release: 1.572.2 release: 1.574.2 release: 1.625.0

Hi,

When a suspended flow times out, the flow is automatically cancelled. It would be great to be able to automatically resume the flow after a specific timeout and specify the args values.

For example, let's imagine that I'm sending a welcome email to a user with a link to a blog article. If the user clicks on the link in the email, it will call the resume url with an argument "clickedArticleId" and I can send her a second email with more articles on the subject. If however after 5 days, the user didn't open / click in the email then I would like to resume the flow with "clickedArticleId = null" and send her another type of email with other subjects.

Right now, I've created another flow with just a sleep function. Before the flow is suspended, it calls this second flow with the resume url. The second flow sleeps for some time and then call the resume url to resume the first flow.
It works but it's not very user friendly. It would be better to chose between automatically resume other automatically cancel a suspended flow after a specific timeout.

Best,
JB

Dominant language
Rust
Stars
18k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
328

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from windmill-labs/windmill

All issues in windmill-labs/windmill

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.