Fleet Manager Future

A Future object allows to wait for the completion of an operation.

Reference API doc

class dataikuapi.fm.future.FMFuture(client, job_id, state=None, result_wrapper=<function FMFuture.<lambda>>)

A future on the DSS instance

static from_resp(client, resp, result_wrapper=<function FMFuture.<lambda>>)

Creates a DSSFuture from a parsed JSON response

Return type

dataikuapi.fm.future.FMFuture

classmethod get_result_wait_if_needed(client, ret)
abort()

Abort the future

get_state()

Get the status of the future, and its result if it’s ready

peek_state()

Get the status of the future, and its result if it’s ready

get_result()

Get the future result if it’s ready, raises an Exception otherwise

has_result()

Checks whether the future has a result ready

wait_for_result()

Wait and get the future result