GitHub user potiuk added a comment to the discussion: Constrain Task Callback 
to Specific Task Operator Types

No. Not as a direct feature. But you could possibl do something with cluster 
policies 
https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/cluster-policies.html
 - you could likely analyse your task in task_policy, see if your callback 
defined is as expected (according to whatever criteria you choose) and either 
remove the callback or - possibly better - throw an exception which will fail 
the DAG to being created.

GitHub link: 
https://github.com/apache/airflow/discussions/45476#discussioncomment-11775133

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to