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
for step_batch in self._scheduler.schedule(build_request):
if not step_batch:
// A batch should only be empty if all dependency work is currently blocked/running.
if not in_flight and not pending_submission:
raise Exception("Scheduler provided an empty batch while no work is in progress!")
else:
// Submit and wait for work for as long as we"re able to keep the pool saturated.
pending_submission.update(step_batch)
while submit_until(self._pool_size) > 0:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: dit/dit
Commit Name: 146f5ddd1ac881fbebdeff83c0be0322bf7e1d74
Time: 2013-09-27
Author: chebee7i@gmail.com
File Name: dit/math/sigmaalgebra.py
Class Name:
Method Name: sets2matrix
Project Name: EpistasisLab/tpot
Commit Name: 050cb192f15e2d990df867360061081164e57868
Time: 2015-12-02
Author: bartleyn@uchicago.edu
File Name: tpot/tpot.py
Class Name: TPOT
Method Name: _evaluate_individual