You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In trying to implement functions with graceful shutdowns like this example, it is impossible to execute cleanup functions in a way that is consistent with the expected behavior of a lambda actually running on AWS.
When invoking plugins in sandbox mode, the shutdown phase of the invoked lambda should emit (or at least have a means of emulating?) SIGTERM events.
Additional context or notes
This is the project/PR where I started running into this: nasa-gcn/gcn.nasa.gov#2248
I am invoking a tables-stream event with the invoker plugin.
The text was updated successfully, but these errors were encountered:
Our Lambda has some cleanup code that we must execute when the runtime is preparing to shut down, which we are putting in a SIGTERM or beforeExit event handler. We are requesting that Architect should simulate Lambda's lifecycle by starting a process to execute the handler and then terminating the process when the handler is done, or when the Lambda reaches its configured timeout.
In the @architect/sandbox source code, it looks like there is an undocumented coldstart function config. What does it do? If it is supported, would you please document it?
Architect should simulate Lambda's lifecycle by starting a process to execute the handler and then terminating the process when the handler is done, or when the Lambda reaches its configured timeout
That is presently how Sandbox works! Perhaps this feature request should come in the form of a broken test PR to the Sandbox repo?
In trying to implement functions with graceful shutdowns like this example, it is impossible to execute cleanup functions in a way that is consistent with the expected behavior of a lambda actually running on AWS.
When invoking plugins in sandbox mode, the shutdown phase of the invoked lambda should emit (or at least have a means of emulating?) SIGTERM events.
Additional context or notes
This is the project/PR where I started running into this: nasa-gcn/gcn.nasa.gov#2248
I am invoking a tables-stream event with the invoker plugin.
The text was updated successfully, but these errors were encountered: