Python: switch to FIFO scheduler

In current implementation `.interpret()` is not thread-safe and so in
parallel one (esp on empty or graph paragraphs) 'Run All' fails with NPE in logs
This commit is contained in:
Alexander Bezzubov 2016-06-17 13:59:50 +09:00
parent ff197d0622
commit 72e9d62406

View file

@ -161,8 +161,8 @@ public class PythonInterpreter extends Interpreter {
@Override
public Scheduler getScheduler() {
return SchedulerFactory.singleton().createOrGetParallelScheduler(
PythonInterpreter.class.getName() + this.hashCode(), 10);
return SchedulerFactory.singleton().createOrGetFIFOScheduler(
PythonInterpreter.class.getName() + this.hashCode());
}
@Override