Write the handler
lambda_function.py
Name the function when you start a run
--lambda to valkyrie run resume or valkyrie run retry.
When the function runs
- Valkyrie checks that it can invoke the function when the run starts, and the run fails if it can’t.
- The function runs once, after every task has finished, and only if the run ends as
FINISHED. A stopped run doesn’t call it. - Resuming or retrying the run calls it again when the rerun finishes.
- A function that fails, by raising an exception or returning a
statusCodeof 400 or more, doesn’t change the run’s status. To confirm that the function ran, check its own logs.

