Pipelines
dadosfera.services.maestro.fetch_paginated_pipelines
fetch_paginated_pipelines(maestro_base_url, token, additional_params={}, size=500, start_page=1)
Fetch pipelines from Maestro with pagination.
PARAMETER | DESCRIPTION |
---|---|
maestro_base_url
|
Base URL of the Maestro instance.
TYPE:
|
token
|
Authentication token.
TYPE:
|
additional_params
|
Additional parameters to be passed in the request. Defaults to {}.
TYPE:
|
size
|
Number of pipelines to fetch per request. Defaults to 500.
TYPE:
|
start_page
|
Starting page number. Defaults to 1.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
List[Dict]: List of pipelines. |
Source code in dadosfera/services/maestro/pipelines.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
dadosfera.services.maestro.fetch_pipeline_execution_history
fetch_pipeline_execution_history(maestro_base_url, token, pipeline_id)
Fetch the execution history and status records for a specific pipeline.
Retrieves a list of historical execution records including status, timestamps, and other metadata for each pipeline run.
PARAMETER | DESCRIPTION |
---|---|
maestro_base_url
|
Base URL of the Maestro instance (e.g., 'https://maestro.example.com/api').
TYPE:
|
token
|
Authentication token for API access.
TYPE:
|
pipeline_id
|
Unique identifier of the pipeline.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of execution records, each containing: - status: Current status of the run |
RAISES | DESCRIPTION |
---|---|
HTTPError
|
For failed API requests. Common cases: - 401: Invalid or expired token - 403: Insufficient permissions |
ConnectionError
|
For network connectivity issues |
Timeout
|
For request timeouts |
RequestException
|
For other request-related errors |
Source code in dadosfera/services/maestro/pipelines.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
dadosfera.services.maestro.fetch_execution_history_all_pipelines
fetch_execution_history_all_pipelines(maestro_base_url, token)
Fetch the execution history and status records for all pipelines.
Retrieves a list of historical execution records including status, timestamps, and other metadata for each pipeline run.
PARAMETER | DESCRIPTION |
---|---|
maestro_base_url
|
Base URL of the Maestro instance (e.g., 'https://maestro.example.com/api').
TYPE:
|
token
|
Authentication token for API access.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
List[Dict]
|
List[Dict]: List of pipelines execution history. |
Source code in dadosfera/services/maestro/pipelines.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|