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
-
tamr_client.operation.
check
(session, operation)[source]¶ Waits for the operation to finish and raises an exception if the operation was not successful.
- Parameters
operation (
Operation
) – Operation to be checked.- Raises
Failed – If the operation failed.
-
tamr_client.operation.
poll
(session, operation)[source]¶ Poll this operation for server-side updates.
Does not update the
Operation
object. Instead, returns a newOperation
.- 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
- Raises
TimeoutError – If operation takes longer than timeout_seconds to resolve.
- Return type
Operation