GitHub user GabrielEisenbergOlympus created a discussion: Constrain Task Callback to Specific Task Operator Types
Hi all 😄 I'm working with Airflow 2.10 on MWAA and need to send results from specific tasks to an external service. Based on certain constraints, this will need to be done in a callback. For ease of other users, I want to generalise this into standard callbacks that we use. My question is whether there is a way to constrain these task callbacks to certain types of operators without including a logic check inside the callback itself? In this way Airflow would do the filtering and would only invoke the callback in certain cases and not for every single task. Thanks so much! GitHub link: https://github.com/apache/airflow/discussions/45476 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
