b6d57e6705748b6589e0d0a38cfe190d131571bc,src/sos/workflow_executor.py,ExecutionManager,terminate,#ExecutionManager#,175

Before Change


            // wait at most 5 second for all processes to be
            // finished by themselves.
            if any(x.worker.is_alive() for x in self.procs + self.pool if x.worker):
                time.sleep(0.01)
                cnt += 1
            else:
                return
        // if the workers cannot kill themselves, give a warning

After Change



    def terminate(self) -> None:
        for proc in self.procs + self.pool:
            if proc is None:
                continue
            close_socket(proc.socket)

class Base_Executor:
    """This is the base class of all executor that provides common
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: vatlab/SoS
Commit Name: b6d57e6705748b6589e0d0a38cfe190d131571bc
Time: 2019-02-24
Author: ben.bog@gmail.com
File Name: src/sos/workflow_executor.py
Class Name: ExecutionManager
Method Name: terminate


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 925c0c5c912b8dfa7cf3d3afdd15b7aadb0c16bd
Time: 2018-01-19
Author: max.lapan@gmail.com
File Name: ch13/wob_click_train.py
Class Name:
Method Name:


Project Name: akkana/scripts
Commit Name: feb5a2fe3e6b32901b2ab80dd660d4c1640ba4aa
Time: 2019-06-28
Author: akkana@shallowsky.com
File Name: newreads.py
Class Name:
Method Name: lookup_books


Project Name: Pinafore/qb
Commit Name: f0323d19f5fd0bd3a4f78e394d6587b72bcc1d8e
Time: 2015-09-30
Author: jordanbg@gmail.com
File Name: util/buzzer.py
Class Name:
Method Name: