mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
executor and executor_linux debug launch prep and process start
This commit is contained in:
@@ -97,7 +97,7 @@ func NewExecutorWithIsolation(logger hclog.Logger) Executor {
|
||||
|
||||
// Launch creates a new container in libcontainer and starts a new process with it
|
||||
func (l *LibcontainerExecutor) Launch(command *ExecCommand) (*ProcessState, error) {
|
||||
l.logger.Debug("launching command", "command", command.Cmd, "args", strings.Join(command.Args, " "))
|
||||
l.logger.Debug("launch prep", "command", command.Cmd, "args", strings.Join(command.Args, " "))
|
||||
|
||||
if command.Resources == nil {
|
||||
command.Resources = &drivers.Resources{
|
||||
@@ -177,6 +177,8 @@ func (l *LibcontainerExecutor) Launch(command *ExecCommand) (*ProcessState, erro
|
||||
return nil, err
|
||||
}
|
||||
|
||||
l.logger.Debug("launching", "command", command.Cmd, "args", strings.Join(command.Args, " "))
|
||||
|
||||
// the task process will be started by the container
|
||||
process := &libcontainer.Process{
|
||||
Args: combined,
|
||||
|
||||
Reference in New Issue
Block a user