mistralclient.commands.v2.tasks module

class mistralclient.commands.v2.tasks.Get(app, app_args, cmd_name=None)

Bases: ShowOne

Show specific task.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.tasks.Get (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class mistralclient.commands.v2.tasks.GetPublished(app, app_args, cmd_name=None)

Bases: Command

Show task published variables.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.tasks.GetPublished (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class mistralclient.commands.v2.tasks.GetResult(app, app_args, cmd_name=None)

Bases: Command

Show task output data.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.tasks.GetResult (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class mistralclient.commands.v2.tasks.List(app, app_args, cmd_name=None)

Bases: MistralExecutionLister

List all tasks.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.tasks.List (WARNING)>
class mistralclient.commands.v2.tasks.Rerun(app, app_args, cmd_name=None)

Bases: ShowOne

Rerun an existing task.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.tasks.Rerun (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class mistralclient.commands.v2.tasks.SubExecutionsLister(app, app_args, cmd_name=None)

Bases: SubExecutionsBaseLister

class mistralclient.commands.v2.tasks.TaskFormatter

Bases: MistralFormatter

COLUMNS = [('id', 'ID'), ('name', 'Name'), ('workflow_name', 'Workflow name'), ('workflow_namespace', 'Workflow namespace'), ('workflow_execution_id', 'Workflow Execution ID'), ('state', 'State'), ('state_info', 'State info'), ('created_at', 'Created at'), ('started_at', 'Started at'), ('finished_at', 'Finished at'), ('duration', 'Duration', True)]
static format(task=None, lister=False)