How to Auto execute KNIME Workbooks (Scheduler) using Python/R/Other?

#1

Hi Forum,

Does anyone know how to auto run/execute KNIME Nodes or KNIME Workflows using Python/R/Other Software? Similar to how Alteryx has a scheduler option, is there a way to schedule Workflows in KNIME?

Thank you,

Eduardo

0 Likes

#2

You could use the KNIME server and less comfortable the Windows Task scheduler or MacOS Automator with KNIME batch workflow.

https://www.knime.com/faq#q12

https://www.knime.com/knime-server

1 Like

#3

Hi there,

Thanks for the below. I tried running it through the Task Scheduler, but I am not successful. Any change you have a step by step guide? Since the way I am doing it is not working for me.

0 Likes

#4

Hi Eduardo,

Executing KNIME workflows from Python can be done using knimepy. It has no auto-scheduling options, though, so you would need to implement that yourself. (Which should be relatively straightforward, I believe. E.g., using a Timer or the sched module.)

Marcel

0 Likes

#5

Hi @MarcelW

Thanks for your response. I am not actually able to get it working. Any chance you have an example of how you got KNIMEPY and Micrsoft’s task working together?

0 Likes

#6

You would have to combine a Windows Task (scheduler) with running KNIME in Batch mode.

I do not have a complete example on windows machine ready at the moment. Maybe you start by building a KNIME batch workflow and have that up and running and then


Once that is running you connect that bat(ch) file to a Task scheduler. From my experience some trial and error is necessary with Windows Task Scheduler.

0 Likes