knimepy
knimepy copied to clipboard
Async remote KNIME Server job basic functionality
Per issue #14, this adds the ability to choose to asynchronously execute a knime.Workflow.
The current api should be considered against alternatives:
- current api:
execute(asynchronous=True)returns anAsyncJobobject - another option: don't return something from
executebut instead add a methodasync_executetoknime.Workflow - yet another option: don't permit asynchronous launching of jobs from the
knime.Workflowclass, making it only possible to do so fromAsyncJob
It is perhaps a natural follow-on to add async job support for local workflows to mirror the api decided upon here but that is outside the scope of this current effort.
Open question: when implementing the rest of AsyncJob functionality to wait on results to be available, should Python's asyncio be used in the implementation?