Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature: Digest/Wait Until #6915

Open
2 tasks done
paulwer opened this issue Nov 11, 2024 · 3 comments
Open
2 tasks done

🚀 Feature: Digest/Wait Until #6915

paulwer opened this issue Nov 11, 2024 · 3 comments
Labels

Comments

@paulwer
Copy link
Contributor

paulwer commented Nov 11, 2024

🔖 Feature description

We would like to see a callback function to check if a condition is true to f.ex. end a digest or wait step.
If leveraged, this could also lead to be used as schedules for checking workflows to be run. But this may be out of scope.

🎤 Why is this feature needed ?

This would enable followup emails or even responses to interaction more smoothly and would reduce the developers need to setup complex cronjobs for this.

Use-Cases I can think of:

  • Error was resolved
  • Errors & Warnings Workflow detected an error with a high priority, so it will skip the current digest and will populate all current digest events and the current event
  • Thanks for your reply f.ex. in discord => maybe such use-cases can get much more complex to be honest :)

✌️ How do you aim to achieve this?

  1. condition check function => the function which will check if a condition was met
  2. ttl or trigger event-selector => define how often this should be triggered
  3. BackOff strategy => to reduce systemload after a while

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

Copy link

linear bot commented Nov 11, 2024

@Abobos
Copy link
Contributor

Abobos commented Dec 4, 2024

@scopsy can I take a look at this issue?

@paulwer
Copy link
Contributor Author

paulwer commented Dec 6, 2024

This could also be extened with a triggerEvent function within the sdk to trigger those waitUntil steps manualy to be completed with the user backend as an initiator. Maybe an optional maxTimeout could be usefull.

Additional use case:

  • having a long running job triggering a workflow for a subscriber for multiple things within the process and proceed with all workflows to send emails, when the long-running job end, ensuring sending only one email.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants