# mistralclient.commands.v2.tasks module

class mistralclient.commands.v2.tasks.Get(app: App, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `ShowOne`

  Show specific task.

  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

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

    Run command.

    Return a tuple containing the column names and an iterable containing the data to be listed.

class mistralclient.commands.v2.tasks.GetPublished(app: _app.App, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `Command`

  Show task published variables.

  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

  log: logging.Logger = <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.App, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `Command`

  Show task output data.

  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

  log: logging.Logger = <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, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `MistralExecutionLister`

  List all tasks.

  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

  log: logging.Logger = <Logger mistralclient.commands.v2.tasks.List (WARNING)>

class mistralclient.commands.v2.tasks.Rerun(app: App, app_args: Namespace | None, cmd_name: str | None = None)

  Bases: `ShowOne`

  Rerun an existing task.

  get_parser(prog_name)

    Return an `argparse.ArgumentParser`.

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

    Run command.

    Return a tuple containing the column names and an iterable containing the data to be listed.

class mistralclient.commands.v2.tasks.SubExecutionsLister(app: App, app_args: Namespace | None, cmd_name: str | None = 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)

this page last updated: 2026-03-26 21:31:21

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

found an error? report a bug