I want to build a workflow that updates itself automatically each day at 11:00 am.
I have been reading through the posts referencing batch and task scheduler but I need a simpler way.
For that, my first idea is to extract the Date&Time each minute. I was thinking about the Date&Time Input and Wait nodes, maybe combined with a loop. This should give a 1x1 table with the current time.
Then, whenever the result is “11:00 am”, every node in the workflow should reset and execute itself.
Hi @jorgemartcaam , the simpler way would actually be using the task scheduler and a batch file.
If I understood your idea correctly, I see a few drawbacks such as:
Your workflow would constantly be running, and looping infinitely. I am not sure how efficient this is, not to mention that it would be using resources constantly.
What happens if the workflow is somehow stopped? What would re-trigger the workflow?
It would mean to have Knime open all the time. What if you need to restart Knime? What would re-trigger the workflow?
Based on what you explained, you are expecting the workflow to be reset by the workflow itself. I don’t think that this is possible.
With the task scheduler:
Your workflow does not have to keep running, therefore will only use resources whenever it runs.
You do not have to worry about manually triggering or re-triggering the workflow.
You can restart your Knime independently, and not to worry about manually triggering or re-triggering the workflow.
Each trigger via the command line is a new execution and has the option to reset the workflow before executing.
Thanks for your answer!
Since I was going to leave the office for a week, I did not really care about efficiency, having Knime open or restarting because of updates.
With “simpler” I really meant faster to achieve with my knowledge .The main problem for me with this approach was the possibility of stoppage, which indeed would not have been a problem with the task scheduler.
Thank you anyway!
As a matter of fact, I’m very interested, too. Do you have any doc. or link on this matter. You’re talking about the “classic task scheduler” in windows, right ?
Hi there,
If it helps, here you have other posts I saw about the same topic.
The faq, where you can see how to deploy it: https://www.knime.com/faq#q12
A couple of posts about the task scheduler and possible problems.