So I want to automatically run my workflow every 10/20 minutes whenever my local KNIME is open, but I’m confused about how to build the loop. Could anyone help me with this issue?
Here, I’ve also attached an image of the workflow I created.
So I want to automatically run my workflow every 10/20 minutes whenever my local KNIME is open, but I’m confused about how to build the loop. Could anyone help me with this issue?
Here, I’ve also attached an image of the workflow I created.
I think the easiest way to achieve this is to combined a count loop with a wait node:
Use this node at the beginning and configure to run for a high duration - e.g. if you expect knime to be up for 8h/day then at 20min you’d set it to larger than 24 (3 runs per hour x 8h). If your configuration nodes e.g. pass the current time or something make sure that you connect the Counting Loop to both of them so they get reset before any new execution.
After your DB writer you then connect a wait node and you configure it to wait for 20 mins.
Connect that wait node to a variable end loop.
When you execute the workflow:
Here are the nodes:
Counting Loop:
Wait:
Variable Loop end: