The official documentation for the Nextmv Python SDKs has been moved to this site. This page is not being updated anymore.
To run an Application, you can use of the following methods:
new_run: creates (submits) a new run and returns the ID (run_id) of the run. With therun_id, you can perform other operations, such as getting the run’s metadata, logs, and result.new_run_with_result: does the same asnew_run, but it also polls for the result of the run. This method returns the result of the run, and it is useful for submitting and getting the result in a single call. Using this method is recommended because we have a built-in polling mechanism that handles retries, exponential backoff, jitter, and timeouts.
The following example shows how to make a new run.
As mentioned before, you may use the recommended new_run_with_result method and get the results immediately after submitting the run and they become available.