-
Notifications
You must be signed in to change notification settings - Fork 66
Support displaying past invocation #892
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I wanted to bump this feature request up. For workflows, while the result is retained for a configurable duration, the invocation journal is immediately removed. A configuration parameter to delay journal deletion would be helpful - enough time for a periodic process (maybe a cron scheduled using Restate itself) to query the admin api and save the data.
|
FYI we're working on this. |
Dropping some design decisions here. There will be 3 knobs:
There's also the invariant that These should be configurable on a service/handler basis, from the code too (similar to #3201). The behavior then is:
In terms of defaults:
|
#3296 merges the support, we now need to implement the annotations in the SDKs. |
Uh oh!
There was an error while loading. Please reload this page.
In order to better support workflow use cases, we believe that it is important to store the history of past invocation runs and to make them easily accessible. The assumption is that the completion/failure of invocation runs itself represent valuable information that the user wants to access. Moreover, it allows building support for re-executing individual workflow runs and to investigate potential failure causes.
1. Option: History server
The Restate runtime itself, does not store the history of invocation runs. Instead, one idea could be to offload this task to an external component, the
HistoryServer
. In order to implement such aHistoryServer
, the runtime would need to expose information about ongoing and completed invocations (e.g. via a CDC stream).2. Option: Cache in Restate server
An alternative w/o an additional dependency is to cache the past invocations in the Restate server. What we need to figure out is which information needs to be retained and for how long.
The text was updated successfully, but these errors were encountered: