mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(core): Add unique id to instances (#6863)
* add serverId and workerId * adjust id format * fix logger init / test * update implementation
This commit is contained in:
committed by
GitHub
parent
f038e1e9a6
commit
6499f42481
@@ -192,7 +192,7 @@ export class Server extends AbstractServer {
|
||||
push: Push;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super('main');
|
||||
|
||||
this.app.engine('handlebars', expressHandlebars({ defaultLayout: false }));
|
||||
this.app.set('view engine', 'handlebars');
|
||||
@@ -339,6 +339,7 @@ export class Server extends AbstractServer {
|
||||
this.push = Container.get(Push);
|
||||
|
||||
await super.start();
|
||||
LoggerProxy.debug(`Server ID: ${this.uniqueInstanceId}`);
|
||||
|
||||
const cpus = os.cpus();
|
||||
const binaryDataConfig = config.getEnv('binaryDataManager');
|
||||
|
||||
Reference in New Issue
Block a user