Node-RED version: v3.1.9
Mode Version: v18.20.4
I am currently working with Node-RED and facing an issue with the Inject node. When a user sets the "repeat" option to loop every second, it can lead to potential performance issues or unintended behavior. I want to remove the "repeat every 1 second" option from the dropdown menu in the Inject node configuration, but I haven’t found a solution yet.
If anyone has worked on something similar or has an idea on how to achieve this, please share your insights or code examples. Your help would be greatly appreciated!
Are you developing an inject node? I misunderstood your request.
I don't know how you think this could work? If someone has access to the Node-RED Editor, they can author flows unless you've made it read-only. That node has a number of features that people rely on so they can't simply be removed. And even in your case, there may be occasions where the use of the repeater is perfectly valid.
1 Like
No i am not developing that node but i am customizing that node so i can remove the seconds option from dropdown.
something like this
So with the inject node, it's not possible to do it. A solution is developing your own inject node.
I am also really confused about this request.
- A feature Request, to remove a feature?
I can't imagine anyone here will want to remove intervals from the inject node @navichawla92 - its critical in a lot of flows that people have.
As mentioned above - you seem to want to control the behaviour of built in Nodes, and what you want to control, most people use daily!
As suggested - developing your own node, is the best way.
is there any way to customize the interval as of now it have static interval, like seconds, minutes and hours.
for example if someone put the repeat interval on every seconds and do some db intergration on every seconds which will effect the performace .
so if we config the interval by passing variable which can be good
If you want something like that, you should be using something like the CRON+ node rather than inject.