I’m trying to trigger a long job on KNIME Server via a company httpCall() method. I’m using the ‘execution’ REST API as follows (with the trailing :execution):
'https://my.company.com:8443/knime/rest/v4/repository/Examples/Test%20Workflows%20(add%20your%20own%20for%20databases)/02%20-%20Extract%20System%20and%20Environment%20Variables%20(Linux%20only)%20-%2020140703:execution?reset=true'
It looks like the REST API doesn’t return until the job has completely finished running. Unfortunately, because my job takes so long, the company httpCall() method times out and restarts the call. This results in an endless loop with this job being triggered over and over again.
After snooping the KNIME Server network, I discovered a similar REST API which uses ‘:interactive-execution’. This is what is used when triggering the workflow from the KNIME Server website before monitoring its progress. I tried this, but I think I need to ‘POST’ and my company is only letting me ‘GET’.
'https://my.company.com:8443/knime/rest/v4/repository/Examples/Test%20Workflows%20(add%20your%20own%20for%20databases)/02%20-%20Extract%20System%20and%20Environment%20Variables%20(Linux%20only)%20-%2020140703:interactive-execution?reset=true'
I’d like to trigger the job and then have the REST API return immediately (I don’t care yet about monitoring the job’s progress). Is there another REST API I should be using?