MCPcopy Create free account
hub / github.com/apache/mesos / exec

Method exec

src/python/cli_new/lib/cli/plugins/task/main.py:86–100  ·  view source on GitHub ↗

Launch a process inside a task's container.

(self, argv)

Source from the content-addressed store, hash-verified

84
85
86 def exec(self, argv):
87 """
88 Launch a process inside a task's container.
89 """
90 try:
91 master = self.config.master()
92 except Exception as exception:
93 raise CLIException("Unable to get leading master address: {error}"
94 .format(error=exception))
95
96 task_io = TaskIO(master, argv["<task-id>"])
97 return task_io.exec(argv["<command>"],
98 argv["<args>"],
99 argv["--interactive"],
100 argv["--tty"])
101
102 def list(self, argv):
103 """

Callers

nothing calls this directly

Calls 4

execMethod · 0.95
CLIExceptionClass · 0.90
TaskIOClass · 0.90
masterMethod · 0.45

Tested by

no test coverage detected