venkatajagannath commented on issue #41707:
URL: https://github.com/apache/airflow/issues/41707#issuecomment-2308458053

   @uranusjr 
   
   pre_execute() and post_execute() naming convention is very intuitive. Would 
it be possible to change the backend design instead? 
   
   I've used setup and teardown. Example 
[here](https://github.com/astronomer/astro-provider-ray/blob/main/example_dags/setup-teardown.py).
 But, my current usecase is slightly different. 
   
   Its a much better UX to use just one decorator to spin up/down a cluster and 
also execute the main job. See example 
[here](https://github.com/astronomer/astro-provider-ray/blob/c072a5ddfb2a5ab0c896dd5e26c021ffadf47d1e/example_dags/ray_taskflow_example.py).
 We also hear the same feedback from customers.


-- 
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