Module instance_output

Module instance_output 

Source
Expand description

Instance output handling for workflow binaries.

Workflows communicate their exit state via output.json file. Environment reads this file to determine the next action (scheduling wake, marking completed, etc.).

The instance run directory is mounted at /data by the OCI runner. Output path: /data/output.json

Structs§

InstanceOutput
Instance output written to output.json on exit.

Enums§

InstanceOutputStatus
Instance output status.

Functions§

get_output_file_path
Get the output file path for the current instance.
write_cancelled
Convenience function to write cancelled output.
write_completed
Convenience function to write completed output.
write_failed
Convenience function to write failed output.
write_sleeping
Convenience function to write sleeping output.
write_suspended
Convenience function to write suspended output.