python-shell-cluster
Version:
Utility to run python script in parallel from nodejs
13 lines (12 loc) • 404 B
TypeScript
import { Options } from "python-shell";
declare class PythonShellCluster {
private pyshells;
private queue;
private scriptLocation;
constructor(numberOfinstances: number, path: string, options?: Options);
addInstances(n: number, options?: Options): void;
run(task: string | object): Promise<unknown>;
private runner;
private nextTask;
}
export default PythonShellCluster;