execution_connector
Boomi AtomSphere API: Execution Record Object
- boomi_cicd.util.execution_connector.query_execution_connector(execution_id, connector_type='return', request_interval_sec=10, max_wait_sec=300)[source]
Query the ExecutionConnector by the Execution ID and connector type.
This function sends a request to the AtomSphere API to query for an ExecutionConnector with the specified execution ID and connector type. It retries the request at specified intervals until a record is found or the maximum wait time is reached. The default connector type is “return” because it is mainly intended for use within automated testing.
- Parameters:
execution_id (str) – The Boomi execution ID.
connector_type (str, optional) – The type of the connector to query. Default is “return”.
request_interval_sec (int, optional) – The time to wait between retries in seconds. Default is 10 seconds.
max_wait_sec (int, optional) – The maximum wait time in seconds. Default is 300 seconds (5 minutes).
- Returns:
The JSON response containing the queried ExecutionConnector.
- Return type:
dict
- Raises:
ValueError – If the ExecutionConnector is not found after max wait time.
requests.RequestException – If the request fails.