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 output file path is constructed from environment variables:

  • DATA_DIR: Base data directory (defaults to current dir)
  • RUNTARA_TENANT_ID: Tenant identifier
  • RUNTARA_INSTANCE_ID: Instance identifier

Output path: $DATA_DIR/$TENANT_ID/runs/$INSTANCE_ID/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 from environment variables.
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.