Attributes¶
Classes¶
brickflow_plugins.databricks.workflow_dependency_sensor.WorkflowDependencySensor(databricks_host: str, databricks_secrets_scope: str, databricks_secrets_key: str, dependency_job_id: int, delta: timedelta, timeout_seconds: int, poke_interval_seconds: int = 60)
¶
This is used to have dependencies on the databricks workflow
Example Usage in your brickflow task
WorkflowDependencySensor( databricks_host=https://your_workspace_url.cloud.databricks.com, databricks_secrets_scope="brickflow-demo-tobedeleted", databricks_secrets_key="service_principle_id" dependency_job_id=job_id, poke_interval=20, timeout=60, delta=timedelta(days=1) )
Source code in brickflow_plugins/databricks/workflow_dependency_sensor.py
Attributes¶
databricks_host = databricks_host
instance-attribute
¶
databricks_secrets_key = databricks_secrets_key
instance-attribute
¶
databricks_secrets_scope = databricks_secrets_scope
instance-attribute
¶
delta = delta
instance-attribute
¶
dependency_job_id = dependency_job_id
instance-attribute
¶
log = logging
instance-attribute
¶
poke_interval = poke_interval_seconds
instance-attribute
¶
start_time = time.time()
instance-attribute
¶
timeout = timeout_seconds
instance-attribute
¶
Functions¶
execute()
¶
Source code in brickflow_plugins/databricks/workflow_dependency_sensor.py
get_http_session()
cached
¶
Source code in brickflow_plugins/databricks/workflow_dependency_sensor.py
get_retry_class(max_retries)
¶
Source code in brickflow_plugins/databricks/workflow_dependency_sensor.py
get_the_execution_date() -> str
¶
Source code in brickflow_plugins/databricks/workflow_dependency_sensor.py
brickflow_plugins.databricks.workflow_dependency_sensor.WorkflowDependencySensorException
¶
Bases: Exception
brickflow_plugins.databricks.workflow_dependency_sensor.WorkflowDependencySensorTimeOutException
¶
Bases: TimeoutError