adding functionTimeout to settings

This commit is contained in:
Kilian Hertel
2023-06-23 17:28:06 +02:00
parent 234e92db12
commit 9876e11edf
4 changed files with 38 additions and 1 deletions

View File

@@ -360,6 +360,10 @@
name: {value:"_DEFAULT_"},
func: {value:"\nreturn msg;"},
outputs: {value:1},
<<<<<<< Updated upstream
=======
timeout:{value:RED.settings.functionTimeout},
>>>>>>> Stashed changes
noerr: {value:0,required:true,
validate: function(v, opt) {
if (!v) {

View File

@@ -503,7 +503,8 @@ module.exports = function(RED) {
RED.nodes.registerType("function",FunctionNode, {
dynamicModuleList: "libs",
settings: {
functionExternalModules: { value: true, exportable: true }
functionExternalModules: { value: true, exportable: true },
functionTimeout: { value:0, exportable: true }
}
});
RED.library.register("functions");