Exemplo n.º 1
0
    def execute(self, reactor):
        while True:
            new_executable = self.executable_.check_for_incoming_connections()
            if new_executable is None:
                break

            self.running_.append(new_executable)
            reactor.callFromThread(new_executable.execute, reactor)

        running_count = len(self.running_)
        self.running_ = [executable for executable
                         in self.running_
                         if executable.isRunning()]

        self.num_executables_completed_ += (running_count - len(self.running_))
Exemplo n.º 2
0
    def execute(self, reactor):
        while len(self.to_start_) > 0:
            executable = self.to_start_.pop()
            self.running_.append(executable)

            if self.state_:
                for key in self.state_.local_:
                    if key not in marionette_tg.executables.pioa.RESERVED_LOCAL_VARS:
                        executable.set_local(key, self.state_.local_[key])

            reactor.callFromThread(executable.execute, reactor)

        self.running_ = [executable for executable
                         in self.running_
                         if executable.isRunning()]
Exemplo n.º 3
0
    def execute(self, reactor):
        while True:
            new_executable = self.executable_.check_for_incoming_connections()
            if new_executable is None:
                break

            self.running_.append(new_executable)
            reactor.callFromThread(new_executable.execute, reactor)

        running_count = len(self.running_)
        self.running_ = [
            executable for executable in self.running_
            if executable.isRunning()
        ]

        self.num_executables_completed_ += (running_count - len(self.running_))
Exemplo n.º 4
0
    def execute(self, reactor):
        while len(self.to_start_) > 0:
            executable = self.to_start_.pop()
            self.running_.append(executable)

            if self.state_:
                for key in self.state_.local_:
                    if key not in marionette_tg.executables.pioa.RESERVED_LOCAL_VARS:
                        executable.set_local(key, self.state_.local_[key])

            reactor.callFromThread(executable.execute, reactor)

        self.running_ = [
            executable for executable in self.running_
            if executable.isRunning()
        ]