The mistralclient.commands.v2.tasks Module

The 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 = <logging.Logger object>
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 = <logging.Logger object>
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 = <logging.Logger object>
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.MistralLister

List all tasks.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <logging.Logger object>
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 = <logging.Logger object>
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.TaskFormatter

Bases: object

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'), ('updated_at', 'Updated at')]
COLUMN_FIELD_NAMES = ('id', 'name', 'workflow_name', 'workflow_namespace', 'workflow_execution_id', 'state', 'state_info', 'created_at', 'updated_at')
COLUMN_HEADING_NAMES = ('ID', 'Name', 'Workflow name', 'Workflow namespace', 'Workflow Execution ID', 'State', 'State info', 'Created at', 'Updated at')
static format(task=None, lister=False)
static format_list(task=None)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

python-mistralclient 3.7.1.dev12