Introductie tot Apache Airflow in Python
Mike Metzger
Data Engineer

from airflow.providers.standard.operators.hitl import ApprovalOperatorsubject - Onderwerp/titel van de goedkeuringbody - Inhoud van het berichtexecution_timeout - timedelta: hoe lang wachten op reactiedefaults - Standaard naar approve of reject bij timeoutassigned_users - Lijst met gebruikers om het bericht aan te sturenapprove_gate = ApprovalOperator(
task_id="approve_data_import",
subject="Data import - Approval Required",
body=(
"Please review the data produced by the *extract_info* task."
"Approve to write data to the database, or Reject to halt the run."
),
)
In de Dag-runweergave verschijnt RequiredActions als een taak met goedkeuring wacht.



Introductie tot Apache Airflow in Python