Merge branch 'develop' of https://github.com/alexandrustefan/Superalgos into 'new_search_engine'

This commit is contained in:
Alexandru Stefan committed 2021-11-04 12:15:08 +02:00
commit 862eb4e028
206 files changed
+45992 -550

No files matched your search

+3 -3
View File
@@ -65,7 +65,7 @@
let path = global.env.BASE_PATH + '/TaskServerRoot.js'
/* Workarround to avoid having the same debug port at the forked process which makes it crash. */
/* Workaround to avoid having the same debug port at the forked process which makes it crash. */
for (let i = 0; i < process.execArgv.length; i++) {
let argument = process.execArgv[i]
if (argument.indexOf('--inspect') > -1) {
@@ -94,7 +94,7 @@
console.log(`[ERROR] Client -> Task Manager Server -> runTask -> Task Server exited with error ${err}`)
tasksMap.delete(task.id)
})
/* If the Tast Server stops, we remove it from our task map */
/* If the Task Server stops, we remove it from our task map */
task.childProcess.on('close', (code, signal) => {
//console.log('[INFO] Client -> Task Manager Server -> runTask -> Task Terminated. -> Task Name = ' + task.name)
//console.log('[INFO] Client -> Task Manager Server -> runTask -> Task Terminated. -> Task Id = ' + task.id)
@@ -190,7 +190,7 @@
function finalize() {
/* Before disconnecting we will forze all eventListeners to stop listening. */
/* Before disconnecting we will force all eventListeners to stop listening. */
const eventListenersArray = [...eventListeners.values()]
for (let i = 0; i < eventListenersArray.length; i++) {
let handler = eventListenersArray[i]
+1 -1
View File
@@ -41,7 +41,7 @@
try {
if (global.env.DEMO_MODE === true) {
/*
In DEMO MODE we will accept Task / Sessioins Running or Stopping if you are requesting this from localhost only.
In DEMO MODE we will accept Task / Sessions Running or Stopping if you are requesting this from localhost only.
*/
if (socket._socket.remoteAddress !== "::1") {
if (
+1 -1
View File
@@ -20,7 +20,7 @@ exports.newPlatformApp = function newPlatformApp() {
})
process.on('unhandledRejection', (reason, p) => {
// Signal user that a necissary node module is missing
// Signal user that a necessary node module is missing
if (reason.code == 'MODULE_NOT_FOUND') {
console.log("[ERROR] Dependency library not found. Please try running the 'node setup' command and then restart the Superalgos Platform Client.")
console.log('[ERROR] Platform App -> reason = ' + JSON.stringify(reason))
+1 -1
View File
@@ -8,7 +8,7 @@ function newProductStorage(name) {
/*
This object will initialize children objects that will end up loading the data of each set defined at each product of the bot received at initialization.
Once all the underlaying objects are fully initialized it will callback.
Once all the underlying objects are fully initialized it will callback.
At the same time it will raise an event for each underlaying file being loaded, so that the UI can reflect the progress to the end user.
+1 -1
View File
@@ -15,7 +15,7 @@ function getSchemaDocument(node, project) {
even those can fail. For that reason, we will temporally see if we can find the schema document at any of the
available projects.
TODO: We need to explictly declare the project of a relatedUIObject in order to avoid potential name collision
TODO: We need to explicitly declare the project of a relatedUIObject in order to avoid potential name collision
between nodes belonging to more than one project.
*/