Operation

class tamr_client.Operation(url, type, status=None, description=None)[source]

A Tamr operation

See https://docs.tamr.com/new/reference/the-operation-object

Parameters
tamr_client.operation.poll(session, operation)[source]

Poll this operation for server-side updates.

Does not update the Operation object. Instead, returns a new Operation.

Parameters

operation (Operation) – Operation to be polled.

Return type

Operation

tamr_client.operation.wait(session, operation, *, poll_interval_seconds=3, timeout_seconds=None)[source]

Continuously polls for this operation’s server-side state.

Parameters
  • operation (Operation) – Operation to be polled.

  • poll_interval_seconds (int) – Time interval (in seconds) between subsequent polls.

  • timeout_seconds (Optional[int]) – Time (in seconds) to wait for operation to resolve.

Raises

TimeoutError – If operation takes longer than timeout_seconds to resolve.

Return type

Operation

tamr_client.operation.succeeded(operation)[source]

Convenience method for checking if operation was successful.

Return type

bool