Use a button on dashboard to control inject node

Hello!

I currently have a flow that has a function, which is running a query in a mysql database.
I want that query to run every 10 seconds.
Everything works fine with an inject node with a respective time interval.

My problem is that the inject node is working all the time, and the query is running continuously.
Is it possible to have a button on dashboard, in order to start the inject node?
My main goal is to control the time that the query (function) is going to start working, and then continue in a time interval.

Best regards.

Instead of inject use a trigger node
The trigger node can be set to start, stop & repeat what was sent to it

2 Likes

Hello Marcus.

Thank you for your quick response.
Works great!
I can now start and stop the query from the dashboard.

Best regards.

1 Like

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