Adding Environment
This commit is contained in:
parent
7c4e00d6fa
commit
2c3a6ddb36
@ -773,7 +773,7 @@ export class nopeDispatcher implements INopeDispatcher {
|
||||
|
||||
return true;
|
||||
}
|
||||
} catch (e) {}
|
||||
} catch (e) { }
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -848,7 +848,7 @@ export class nopeDispatcher implements INopeDispatcher {
|
||||
);
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
} catch (e) { }
|
||||
});
|
||||
|
||||
// Subscribe to new available Topics.
|
||||
@ -869,7 +869,7 @@ export class nopeDispatcher implements INopeDispatcher {
|
||||
);
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
} catch (e) { }
|
||||
});
|
||||
|
||||
await this.communicator.onNewInstanceGeneratorsAvailable((data) => {
|
||||
@ -887,7 +887,7 @@ export class nopeDispatcher implements INopeDispatcher {
|
||||
data.dispatcher
|
||||
);
|
||||
}
|
||||
} catch (e) {}
|
||||
} catch (e) { }
|
||||
});
|
||||
|
||||
await this.communicator.onStatusUpdate((info) => {
|
||||
@ -1096,6 +1096,8 @@ export class nopeDispatcher implements INopeDispatcher {
|
||||
const os = require("os");
|
||||
return {
|
||||
id: this.id,
|
||||
env: "javascript",
|
||||
version: "0.9.5",
|
||||
host: {
|
||||
cores: os.cpus().length,
|
||||
cpu: `${os.cpus()[0].model}`,
|
||||
@ -1109,6 +1111,8 @@ export class nopeDispatcher implements INopeDispatcher {
|
||||
};
|
||||
}
|
||||
return {
|
||||
env: "javascript",
|
||||
version: "0.9.5",
|
||||
host: {
|
||||
cores: -1,
|
||||
cpu: "unkown",
|
||||
@ -1536,7 +1540,7 @@ export class nopeDispatcher implements INopeDispatcher {
|
||||
protected _subscribeToEvent(event: string) {
|
||||
const item = this._externallySubscribeObservables.get(event) || {
|
||||
observable: this._generateObservable<IExternalEventMsg>(),
|
||||
cb: () => {}
|
||||
cb: () => { }
|
||||
};
|
||||
|
||||
if (!item.observable.hasSubscriptions) {
|
||||
|
@ -43,6 +43,8 @@ export interface IDispatcherInfo {
|
||||
id: string;
|
||||
timestamp: number;
|
||||
status: ENopeDispatcherStatus;
|
||||
env: string,
|
||||
version: string,
|
||||
host: {
|
||||
cores: number;
|
||||
cpu: string;
|
||||
|
Loading…
Reference in New Issue
Block a user