sighingnow opened a new issue #17073:
URL: https://github.com/apache/airflow/issues/17073


   **Description**
   
   We propose to add such features to airflow, which will allow the users to 
define a hook at the DAG level, and been executed before the `pre_execution` 
and after the `post_execution`.
   
   TODO: we will propose detailed API change if such change is acceptable.
   
   **Use case / motivation**
   
   Airflow supports the operator to define their custom 
`pre_execution/post_execution` method, which will be exeucted before/after the 
execution of the operator, respectively.
   
   But is hard to inject such hooks to existing operators, without modifying 
the code. i.e., airfow doesn't support a global pre-hook/post-hook to run 
before/after execution of every operators. 
   
   Such kind of hooks could be used for preparing the required inputs and 
finalizing the produced outputs for every operators in the DAG, etc.
   
   **Are you willing to submit a PR?**
   
   <!--- We accept contributions! -->
   Yes, we would like to submit a PR if this feature request is acceptable.
   
   **Related Issues**
   
   None.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to