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

Callback before deleting an early response #84

Open
theodiefenthal opened this issue Jun 1, 2017 · 0 comments
Open

Callback before deleting an early response #84

theodiefenthal opened this issue Jun 1, 2017 · 0 comments

Comments

@theodiefenthal
Copy link
Contributor

When an engine.notify() is called with a response, COPPER can not know wheter a workflow will start waiting for that message later on or whether the message is "garbgabe" out of COPPERs view. Thus, it is stored as EarlyResponse inside COPPER and will be deleted after a configurable amount of time.

Before COPPER finally deletes such a response, a user might want to react to that deletion. He might at least want to add an entry to an audit log such that on debugging later on, one can see what happend to that message and that it existed afterall.

So we could/should offer a callback setter for the earlyResponseContainer (Transient engine) and inside deleteStaleResponse in the persistent engine. For a distributed engine, the callback shall be called exactly once but we cannot tell beforehand, which engine is going to call that callback, thus every engine must know how to handle that callback.

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

No branches or pull requests

1 participant