# Node red core Inject node remove seconds option from dropdown using configurations

**URL:** <https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822>\
**Category:** General\
**Tags:** inject\
**Created:** [10 December 2024 09:08 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822 "2024-12-10T09:08:11Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![navichawla92](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/navichawla92/32/96920_2.png) [@navichawla92](https://discourse.nodered.org/u/navichawla92)\
**Post date:** [10 December 2024 09:08 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/1 "2024-12-10T09:08:11Z")

</div>

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 wo 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.  
is there any configuration or parameter that i can set to disabled the seconds option from the inject node so user want be able to use that option while using the inject node.

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!

 ![Screenshot 2024-12-05 at 2.46.48 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/4/c447440efa5b2e9b8f99a4e3fd7c371de43af5f5.png)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 December 2024 09:12 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/2 "2024-12-10T09:12:51Z")

</div>

Why are you repeating the same question? You asked this a few days ago.

---

<div class="post-metadata">

**Author:** ![navichawla92](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/navichawla92/32/96920_2.png) [@navichawla92](https://discourse.nodered.org/u/navichawla92)\
**Post date:** [10 December 2024 09:52 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/3 "2024-12-10T09:52:07Z")

</div>

@TotallyInformation In old question i put it as feature but as i see it does not need to be feature but i am looking for help in configuration where i can remove that seconds option .  
Thanks

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [10 December 2024 10:32 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/4 "2024-12-10T10:32:42Z")

</div>

And It was already answered to: you cant.

- build your own
- Or use a rate limit node to throttle the output of the inject

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 December 2024 10:44 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/5 "2024-12-10T10:44:16Z")

</div>

And even if you did remove the seconds option, I think the user would still be able to enter 0.01 minutes, though I am on my phone and have not checked that.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [10 December 2024 12:22 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/6 "2024-12-10T12:22:04Z")

</div>

I just tested @Colin idea however if you set the interval to 0.01 minutes, it gets changed to 0.6 seconds automatically

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [10 December 2024 12:38 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/7 "2024-12-10T12:38:05Z")

</div>

> [@navichawla92](#):
>
> 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.

What are your users trying to achieve that makes them inject every second?

If you manage to prevent that, they can easily switch to using a trigger node resending the same message every 250 milliseconds or less.

One message per second does not seem especially frequent. What are these performance issues?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 December 2024 13:32 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/8 "2024-12-10T13:32:58Z")

</div>

> [@jbudd](#):
>
> they can easily switch to using a trigger node

Or write a function node that could send every MILLISECOND!!

---

<div class="post-metadata">

**Author:** ![navichawla92](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/navichawla92/32/96920_2.png) [@navichawla92](https://discourse.nodered.org/u/navichawla92)\
**Post date:** [10 December 2024 14:20 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/9 "2024-12-10T14:20:56Z")

</div>

I dont want to inject in seconds.  
i want user to inject only in minutes as with seconds it make the flow performance slow.

---

<div class="post-metadata">

**Author:** ![navichawla92](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/navichawla92/32/96920_2.png) [@navichawla92](https://discourse.nodered.org/u/navichawla92)\
**Post date:** [10 December 2024 14:23 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/10 "2024-12-10T14:23:17Z")

</div>

they are trying to update the report or we can export some informatation which have 500+ records and if they export it on every second the system load and crash.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [10 December 2024 14:29 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/11 "2024-12-10T14:29:33Z")

</div>

> [@navichawla92](#):
>
> export some informatation which have 500+ records  
> ...  
> the system load and crash

Do you mean that some system external to Node-red, a database maybe, will crash?

How many people have access to the Node-red editor? Would they be better off with a dashboard where their actions can more easily be controlled?

---

<div class="post-metadata">

**Author:** ![navichawla92](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/navichawla92/32/96920_2.png) [@navichawla92](https://discourse.nodered.org/u/navichawla92)\
**Post date:** [10 December 2024 14:44 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/12 "2024-12-10T14:44:20Z")

</div>

yes some user have node-red editor access so that why looking for configuration for the inject node to dont use the seconds option in dropdown.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [10 December 2024 14:47 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/13 "2024-12-10T14:47:35Z")

</div>

They have access to the editor (and presumably write access)

If you cannibalise the inject, I will use a function node to do it 🤷

Sorry, but as long as they have write access - I’m not sure you have many options.

You can disable core nodes - but only disable, not alter their behaviour

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 December 2024 15:19 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/14 "2024-12-10T15:19:20Z")

</div>

> [@marcus-j-davies](#):
>
> If you cannibalise the inject, I will use a function node to do it

And if you prevent that, you will also have to prevent access to the exec node and probably to the http-in/-response nodes. Then you will have to block all of the various timer nodes.

Oh, and you will have to block both Dashboards and UIBUILDER as well.

All of these can be used to generate high-speed flow executions.

As I think several of us have already made plain. Node-RED is a GENERAL PURPOSE compute tool. Trying to restrict it this way is foolish and unworkable.

There is, however, a very easy "solution". TELL your users not to be so stupid. 🙂

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 December 2024 16:15 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/15 "2024-12-10T16:15:01Z")

</div>

[quote="zenofmud, post:6, topic:93822"]  
if you set the interval to 0.01 minutes, it gets changed to 0.6 seconds automatically  
[/quote](

If the seconds option were not available it would be left as is. It is probably stored internally in ms anyway. The seconds option is just for the convenience of entering and displaying it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 March 2025 16:15 UTC](https://discourse.nodered.org/t/node-red-core-inject-node-remove-seconds-option-from-dropdown-using-configurations/93822/16 "2025-03-10T16:15:26Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
