mistralclient.commands.v2.executions module¶
-
class
mistralclient.commands.v2.executions.
Create
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.ShowOne
Create new execution.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger mistralclient.commands.v2.executions.Create (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.executions.
Delete
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Command
Delete execution.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger mistralclient.commands.v2.executions.Delete (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
mistralclient.commands.v2.executions.
ExecutionFormatter
¶ Bases:
mistralclient.commands.v2.base.MistralFormatter
-
COLUMNS
= [('id', 'ID'), ('workflow_id', 'Workflow ID'), ('workflow_name', 'Workflow name'), ('workflow_namespace', 'Workflow namespace'), ('description', 'Description'), ('task_execution_id', 'Task Execution ID'), ('root_execution_id', 'Root Execution ID'), ('state', 'State'), ('state_info', 'State info'), ('created_at', 'Created at'), ('updated_at', 'Updated at'), ('duration', 'Duration', True)]¶
-
static
format
(wf_ex=None, lister=False)¶
-
-
class
mistralclient.commands.v2.executions.
Get
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.ShowOne
Show specific execution.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger mistralclient.commands.v2.executions.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.executions.
GetInput
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Command
Show execution input data.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger mistralclient.commands.v2.executions.GetInput (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
mistralclient.commands.v2.executions.
GetOutput
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Command
Show execution output data.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger mistralclient.commands.v2.executions.GetOutput (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
mistralclient.commands.v2.executions.
GetPublished
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Command
Show workflow global published variables.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger mistralclient.commands.v2.executions.GetPublished (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
mistralclient.commands.v2.executions.
GetReport
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Command
Print execution report.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger mistralclient.commands.v2.executions.GetReport (WARNING)>¶
-
print_action_execution_entry
(a_ex, level)¶
-
print_line
(line, level=0)¶
-
print_report
(report_json)¶
-
print_statistics
(stat)¶
-
print_task_execution_entry
(t_ex, level)¶
-
print_workflow_execution_entry
(wf_ex, level)¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
mistralclient.commands.v2.executions.
List
(app, app_args, cmd_name=None)¶ Bases:
mistralclient.commands.v2.base.MistralExecutionLister
List all executions.
-
get_parser
(parsed_args)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger mistralclient.commands.v2.executions.List (WARNING)>¶
-
-
class
mistralclient.commands.v2.executions.
SubExecutionsBaseLister
(app, app_args, cmd_name=None)¶ Bases:
cliff.lister.Lister
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
take_action
(parsed_args)¶ Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
mistralclient.commands.v2.executions.
SubExecutionsLister
(app, app_args, cmd_name=None)¶ Bases:
mistralclient.commands.v2.executions.SubExecutionsBaseLister
-
class
mistralclient.commands.v2.executions.
Update
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.ShowOne
Update execution.
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger mistralclient.commands.v2.executions.Update (WARNING)>¶
-
take_action
(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-