-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task[hmi-server]: reimplement ssemq on hmi server #2150
Conversation
…-ssemq-on-hmi-server
…-ssemq-on-hmi-server
…-ssemq-on-hmi-server
…-ssemq-on-hmi-server
…-ssemq-on-hmi-server
Hopefully the second last commit. this is working but needs a little cleanup before merging.
…-ssemq-on-hmi-server
This reverts commit 5710176.
@@ -33,6 +33,7 @@ | |||
"@lumino/commands": "2.1.3", | |||
"@lumino/coreutils": "2.1.2", | |||
"@lumino/widgets": "2.1.0", | |||
"@microsoft/fetch-event-source": "^2.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use yarn add --exact @microsoft/fetch-event-source
to pin the version number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but this should go under /api
folder as it is a utils and not a service per se.
const handleIntermediateResult = (message: string) => { | ||
/* const handleIntermediateResult = (message: string) => { | ||
const parsedMessage = JSON.parse(message); | ||
console.log(parsedMessage); | ||
}; | ||
}; */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could remove it.
import TeraSimulateChart from '@/workflow/tera-simulate-chart.vue'; | ||
import TeraProgressBar from '@/workflow/tera-progress-bar.vue'; | ||
import { getTimespan } from '@/workflow/util'; | ||
import { logger } from '@/utils/logger'; | ||
import { subscribe, unsubscribe } from '@/services/ClientEventService'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { subscribe, unsubscribe } from '@/services/ClientEventService'; | |
import * as ClientEventService from '@/services/ClientEventService'; |
Better to then call ClientEventService.subscribe()
@@ -42,6 +42,11 @@ public class Config { | |||
*/ | |||
ClientConfig clientConfig; | |||
|
|||
/** | |||
* If queues should be declared durable. IF running Rabbit inside docker, this should be false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* If queues should be declared durable. IF running Rabbit inside docker, this should be false | |
* If queues should be declared durable. | |
* If running Rabbit inside docker, this should be false. |
@@ -83,3 +84,9 @@ tgpt.ws.url=wss://app.staging.terarium.ai/beaker_ws/ | |||
######################################################################################################################## | |||
spicedb.launchmode=TLS | |||
spicedb.target=spicedb.staging.terarium.ai:443 | |||
|
|||
# RabbitMQ exchange |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# RabbitMQ exchange | |
######################################################################################################################## | |
# RabbitMQ exchange | |
######################################################################################################################## |
if (handlers) { | ||
handlers.forEach((handler) => handler(data)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (handlers) { | |
handlers.forEach((handler) => handler(data)); | |
} | |
if (handlers) { | |
handlers.forEach((handler) => handler(data)); | |
} else { | |
logger.info(`Message ${data.type} has no handler available`); | |
} |
Description
Resolves #2004