mistralclient.commands.v2.tasks module

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

Bases: osc_lib.command.command.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: osc_lib.command.command.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: osc_lib.command.command.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: mistralclient.commands.v2.base.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: osc_lib.command.command.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: mistralclient.commands.v2.executions.SubExecutionsBaseLister

class mistralclient.commands.v2.tasks.TaskFormatter

Bases: mistralclient.commands.v2.base.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)