kkrunner.runs.processing.PostprocessingRunner

class kkrunner.runs.processing.PostprocessingRunner(runner, process_result, callback=None)[source]

Bases: object

Convert a raw execution outcome into the caller-visible result.

The wrapped runner owns submission, execution and artifact availability. This layer owns only the POSTPROCESSING phase and invokes one supplied task-agnostic callable after successful raw execution.

property spec

Expose the immutable launch specification before submission.

property executor

Expose the raw executor without leaking task processing into it.

property backend_id
property execution
property files
property exception
property failure_phase
property failure_message
property return_code
property state
add_output_listener(callback)[source]
add_output_error_listener(callback)[source]
prepare_submission()[source]

Delegate side-effect-free-of-process launch preparation to raw runner.

submit()[source]
start()[source]

Start a new run or monitoring of an attached raw runner.

wait()[source]
run()[source]
async run_async()[source]
stop_observation()[source]

Stop this client’s monitor; leave the backend calculation intact.

cancel()[source]