Attributes¶
Classes¶
brickflow_plugins.airflow.operators.external_tasks.AirflowClusterAuth
¶
brickflow_plugins.airflow.operators.external_tasks.AirflowProxyOktaClusterAuth(oauth2_conn_id: str, airflow_cluster_url: str, airflow_version: str = None, get_airflow_version_callback: Callable[[str, str], str] = None)
¶
Bases: AirflowClusterAuth
Source code in brickflow_plugins/airflow/operators/external_tasks.py
Functions¶
get_access_token() -> str
¶
Source code in brickflow_plugins/airflow/operators/external_tasks.py
get_airflow_api_url() -> str
¶
get_okta_client_id() -> str
¶
get_okta_client_secret() -> str
¶
get_okta_conn()
¶
get_okta_url() -> str
¶
get_version() -> str
¶
brickflow_plugins.airflow.operators.external_tasks.AirflowScheduleHelper(airflow_auth: AirflowClusterAuth)
¶
Bases: DagSchedule
Source code in brickflow_plugins/airflow/operators/external_tasks.py
Functions¶
get_task_run_status(wf_id: str, task_id: str, latest=False, run_date=None, **kwargs)
¶
Source code in brickflow_plugins/airflow/operators/external_tasks.py
brickflow_plugins.airflow.operators.external_tasks.AutosysSensor(url: str, job_name: str, poke_interval: int, time_delta: Union[timedelta, dict] = {'days': 0}, *args, **kwargs)
¶
Bases: BaseSensorOperator
Source code in brickflow_plugins/airflow/operators/external_tasks.py
Attributes¶
job_name = job_name
instance-attribute
¶
poke_interval = poke_interval
instance-attribute
¶
time_delta = time_delta
instance-attribute
¶
url = self.url + self.job_name
instance-attribute
¶
Functions¶
poke(context)
¶
Source code in brickflow_plugins/airflow/operators/external_tasks.py
brickflow_plugins.airflow.operators.external_tasks.DagSchedule
¶
brickflow_plugins.airflow.operators.external_tasks.TaskDependencySensor(external_dag_id, external_task_id, airflow_auth: AirflowClusterAuth, allowed_states=None, execution_delta=None, execution_delta_json=None, latest=False, poke_interval=60, *args, **kwargs)
¶
Bases: BaseSensorOperator
Source code in brickflow_plugins/airflow/operators/external_tasks.py
Attributes¶
allowed_states = allowed_states
instance-attribute
¶
execution_delta = execution_delta
instance-attribute
¶
execution_delta_json = execution_delta_json
instance-attribute
¶
external_dag_id = external_dag_id
instance-attribute
¶
external_task_id = external_task_id
instance-attribute
¶
latest = latest
instance-attribute
¶
poke_interval = poke_interval
instance-attribute
¶
Functions¶
execute(context)
¶
Function inherited from the BaseSensor Operator to execute the Poke Function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
context |
dictionary
|
instance of the airflow task |
required |
Raises:
Type | Description |
---|---|
Exception
|
If Upstream Dag is Failed |
Source code in brickflow_plugins/airflow/operators/external_tasks.py
get_execution_stats(execution_date: datetime)
¶
Function to get the execution stats for task_id within a execution delta window
Returns:
Name | Type | Description |
---|---|---|
string |
state of the desired task id and dag_run_id (success/failure/running) |
Source code in brickflow_plugins/airflow/operators/external_tasks.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 |
|