Send the projects schema to the Task Server
This commit is contained in:
1 parent
ea6fe25e10
commit
495864b5b6
2 files changed
+7
-1
No files matched your search
@@ -185,7 +185,7 @@ function newSuperalgosFunctionLibraryTaskFunctions() {
|
||||
taskId: node.id,
|
||||
taskName: node.name,
|
||||
taskDefinition: JSON.stringify(taskDefinition),
|
||||
networkDefinition: JSON.stringify(networkDefinition)
|
||||
projectsSchema: JSON.stringify(PROJECTS_SCHEMA)
|
||||
}
|
||||
|
||||
if (isDebugging === true) {
|
||||
|
||||
@@ -31,6 +31,7 @@ function preLoader() {
|
||||
setUpAppSchema(JSON.parse(message.event.projectSchemas))
|
||||
global.TASK_NODE = JSON.parse(message.event.taskDefinition)
|
||||
global.TASK_NETWORK = JSON.parse(message.event.networkDefinition)
|
||||
global.PROJECTS_SCHEMA = JSON.parse(message.event.projectsSchema)
|
||||
bootLoader()
|
||||
} catch (err) {
|
||||
console.log('[ERROR] Task Server -> Task -> preLoader -> eventReceived -> ' + err.stack)
|
||||
@@ -54,6 +55,7 @@ function preLoader() {
|
||||
setUpAppSchema(JSON.parse(message.event.projectSchemas))
|
||||
global.TASK_NODE = JSON.parse(message.event.taskDefinition)
|
||||
global.TASK_NETWORK = JSON.parse(message.event.networkDefinition)
|
||||
global.PROJECTS_SCHEMA = JSON.parse(message.event.projectsSchema)
|
||||
bootLoader()
|
||||
|
||||
} catch (err) {
|
||||
@@ -81,6 +83,10 @@ function preLoader() {
|
||||
}
|
||||
}
|
||||
|
||||
function setupUpTS() {
|
||||
|
||||
}
|
||||
|
||||
function bootLoader() {
|
||||
|
||||
/* Heartbeat sent to the UI */
|
||||
|
||||
Reference in new issue
Block a user