ef3f8d221a5afefb01d655448ce7e3f537399810,src/python/pants/engine/exp/engine.py,LocalMultiprocessEngine,reduce,#LocalMultiprocessEngine#Any#Any#,446

Before Change


    // ExecutionGraph nodes move from `pending_submission` to `in_flight` to `satisfied_promises`.
    pending_submission = {}
    in_flight = {}
    satisfied_promises = set()

    def submit_satisfied_pending():
      for promise, plan in pending_submission.items():
        if plan.promises.issubset(satisfied_promises):

After Change


    executor = self.Executor(self._pool, self._pool_size, fail_slow=fail_slow, debug=self._debug)

    // Steps move from `pending_submission` to `in_flight`.
    pending_submission = OrderedSet()
    in_flight = dict()

    def submit_until(n):
      Submit pending while there"s capacity, and more than `n` items pending_submission.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: ef3f8d221a5afefb01d655448ce7e3f537399810
Time: 2016-01-26
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/engine.py
Class Name: LocalMultiprocessEngine
Method Name: reduce


Project Name: pantsbuild/pants
Commit Name: 9a5a95e0f7bee96b38a2119198a4545ff65f83d1
Time: 2015-08-25
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/thrift_builder.py
Class Name: PythonThriftBuilder
Method Name: run_thrifts


Project Name: pantsbuild/pants
Commit Name: 1a4dcfcf867af57839ba8f7f497bfbadf6e17927
Time: 2018-01-28
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/tasks/pytest_run.py
Class Name: PytestRun
Method Name: _generate_coverage_config