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

allow user-supplied data be included in the trigger from TriggersFrontend #116

Open
iakkus opened this issue Apr 21, 2021 · 0 comments
Open
Labels
env/all To indicate something that applies to all environments feature_request New feature request improvement Improvements to an existing component

Comments

@iakkus
Copy link
Member

iakkus commented Apr 21, 2021

Currently, the TriggersFrontend will trigger a workflow execution associated with an external event. The external event's data is used as the trigger message's content. This scheme works well with stateless functions.

The TriggersFrontend does not currently allow a trigger to be associated with a workflow that is using an addressable function as the entry point to the execution for a given session. For example, an application-level session may instantiate an addressable function that will do the processing for the external event. However, addressable functions that belong to a session, can only be addressed with their session_id parameter.

The proposal is to allow user code to create triggers with additional data, such that each triggered workflow execution can contain this additional data besides the external event's message content. In the case of a workflow with an addressable function, this parameter would be the session_id, so that any triggers would be delivered to that session. The trigger would be then specific to the session (i.e., would be created when the session is created).

@iakkus iakkus added feature_request New feature request improvement Improvements to an existing component env/all To indicate something that applies to all environments labels Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
env/all To indicate something that applies to all environments feature_request New feature request improvement Improvements to an existing component
Projects
None yet
Development

No branches or pull requests

1 participant