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

Question on handling time #1379

Open
mathwizard opened this issue Nov 12, 2022 · 1 comment
Open

Question on handling time #1379

mathwizard opened this issue Nov 12, 2022 · 1 comment

Comments

@mathwizard
Copy link

Hello and thank you for this piece of software. I think it fits my niche. What I would like to understand though is how to handle time delays in the flow. For example I want to run an interaction only in case some event has happened and some time has passed since (e.g. in marketplace scenario interaction to remind seller of awaiting order 24 hours after order has been submitted ). Would I need to solve this outside of the context of the recipe or can it be solved inside the recipe.
Thank you

@nikolakasev
Copy link
Collaborator

Hello Michael, you will have to solve it outside of the recipe as Baker doesn't have a concept of time. You can pre-condition the interaction you would like to be triggered with an extra sensory event called RemindSeller or something like that. There are many ways to implement a timer, for example a cron job in your OS or k8s for example.

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

No branches or pull requests

2 participants