Skip to content

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.

3 participants