Catch panics in StepFunction.Run and return them as errors
Wraps the step function invocation in safelyInvoke, which recovers from any panic and returns it as an error instead of crashing the step-runner.
Changes
- Added
safelyInvokehelper that wraps arunner.StepFunccall with panic recovery - Added test covering the panic case
Related
Pilot runners: Error response from daemon: cont... (#413 - closed)
Edited by Cameron Swords