Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:AliceO2Group/WebUi into feature/Jade…
Browse files Browse the repository at this point in the history
…n505/OGUI-1280/logout-function
  • Loading branch information
graduta committed Dec 3, 2024
2 parents 6b850d5 + 205a59e commit d269a43
Show file tree
Hide file tree
Showing 34 changed files with 2,336 additions and 917 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/control.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- run: (cd Control; npm run coverage )
- run: (cd Control; ./node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov)
- name: Send codecov report for Control
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: control
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- run: (cd Framework; npm run coverage )
- run: (cd Framework; ./node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov)
- name: Send codecov report for Framework
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: framework
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/infologger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- run: (cd InfoLogger; npm run coverage )
- run: (cd InfoLogger; ./node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov)
- name: Send codecov report for InfoLogger
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: infologger
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- run: (cd QualityControl; npm ci )
- run: (cd QualityControl; npm run coverage-lcov )
- name: Send codecov report for QualityControl
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: qualitycontrol
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ build
tobject2json.node
*/.nyc*
*/test/integration/test-config*
.vscode
.vscode/*
!.vscode/launch.json
.idea
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "[ilg] run dev",
"request": "launch",
"runtimeArgs": [
"run-script",
"dev"
],
"localRoot": "${workspaceFolder}/InfoLogger/",
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"outputCapture": "std",
"type": "node",
"windows": {
"localRoot": "${workspaceFolder}\\InfoLogger\\"
}
}
]
}
23 changes: 14 additions & 9 deletions Control/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,20 @@ module.exports.setup = (http, ws) => {

let aliEcsSynchronizer = undefined;
if (config.kafka && config.kafka?.enable) {
const kafkaClient = new Kafka({
clientId: 'control-gui',
brokers: config.kafka.brokers,
retry: { retries: 3 },
logLevel: logLevel.NOTHING,
});

aliEcsSynchronizer = new AliEcsSynchronizer(kafkaClient, cacheService);
aliEcsSynchronizer.start();
try {
const kafkaClient = new Kafka({
clientId: 'control-gui',
brokers: config.kafka.brokers,
retry: { retries: 3 },
logLevel: logLevel.NOTHING,
});
aliEcsSynchronizer = new AliEcsSynchronizer(kafkaClient, cacheService);
aliEcsSynchronizer.start();

} catch (error) {
logger.errorMessage(`Kafka initialization failed: ${error.message}`);
}

}

const statusService = new StatusService(
Expand Down
Loading

0 comments on commit d269a43

Please sign in to comment.