Skip to content

Conversation

@jake-arkinstall
Copy link
Collaborator

When exit is called by the user program, it:

  • Flushes an EXIT message to the result stream
  • Tells the runtime that an shot is ending
  • pokes the runtime to fetch instructions (e.g. cleanup) emitted as a result of the runtime handling the above
  • runs those instructions through the rest of the pipeline
  • emits end-of-shot event hook data to the result stream (e.g. INSTRUCTIONLOG, METRICS)
  • sends a SELENE:SHOT_END instruction

In the result stream parsing code, receiving an EXIT puts the shot into an ENDING state. This PR allows events through the result stream to be accepted inside of that ENDING state, thus allowing instructionlog and metrics to be collected without error after an exit has been called.

@jake-arkinstall jake-arkinstall merged commit fc4d673 into main Nov 18, 2025
10 checks passed
@jake-arkinstall jake-arkinstall deleted the fix/allow-metadata-post-exit branch November 18, 2025 12:04
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