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