mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
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:
parent
ff197d0622
commit
72e9d62406
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue