Skip to content

Add LaunchResult #66

Closed
Closed
@apoorvkh

Description

@apoorvkh

We should wrap the return values in a class called LaunchResult (or similar). This is rather important, because it is pretty ugly / unintuitive to value = trx.launch("...")["localhost"][0] or equivalent. Especially if you don't know the node names (in "auto" mode) or don't know which is rank zero.

Support functions .all(by: Literal['rank', 'hostname']) (all results, ordered by global rank or hostname+local), .value(rank: int) (global rank), .value(hostname: str) (list of values from specific host), .value(hostname: str, rank: int) (local rank)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions