Adding Environment

This commit is contained in:
Martin Karkowski 2021-06-07 07:59:36 +02:00
parent 7c4e00d6fa
commit 2c3a6ddb36
2 changed files with 75 additions and 69 deletions

View File

@ -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) {

View File

@ -43,6 +43,8 @@ export interface IDispatcherInfo {
id: string;
timestamp: number;
status: ENopeDispatcherStatus;
env: string,
version: string,
host: {
cores: number;
cpu: string;