aztk icon indicating copy to clipboard operation
aztk copied to clipboard

Cluster run should return exit code

Open jafreck opened this issue 7 years ago • 0 comments

Currently the cluster run return value is a mess, especially in the SDK:

The SDK returns a tuple of (node_id, output) where output can be a string representing the stdout of the command, or an exception in the event of a failure.

What should be returned is a dictionary:

{ nodes:
    node_id: {
        output: _
        exception: _
        exit_code: _
    }
}

Both the CLI and SDK should then return an exit code representing the success of the command where success means all nodes exited with a 0 exit code.

jafreck avatar May 14 '18 19:05 jafreck