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

Executor context #228

Merged
merged 9 commits into from
Feb 16, 2022
Merged

Executor context #228

merged 9 commits into from
Feb 16, 2022

Conversation

Shillaker
Copy link
Collaborator

@Shillaker Shillaker commented Feb 14, 2022

Some applications need to access the current execution context via global functions to query the currently executing message or executor. At the moment this done through a few global functions spread over Faasm/ Faabric e.g. getExecutingExecutor and getExecutingCall, and does not provide any way to access the currently executing batch request.

This PR wraps all these accesses in a new ExecutorContext, which captures the executor, batch request and message index (i.e. which message within the batch request is executing).

@Shillaker Shillaker self-assigned this Feb 14, 2022
@Shillaker Shillaker marked this pull request as ready for review February 16, 2022 09:07
@Shillaker Shillaker merged commit 258c63a into main Feb 16, 2022
@Shillaker Shillaker deleted the exec-context branch February 16, 2022 13:18
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

Successfully merging this pull request may close these issues.

2 participants