nesp159de opened a new issue, #55055:
URL: https://github.com/apache/airflow/issues/55055

   ### Description
   
   We propose to implement future state or promised state as a property of a 
task instance or even task class itself. It would be really valuable, 
especially if it can be controlled via gui. The behavior is: From GUI 
futureState may be set/unset to for example skipped or other values of State 
enumeration type.
   Once a task is scheduled for execution it will check if it has something set 
in futureState variable if so: it will copy the value to the state and stop its 
execution.
   
   This would lead to user can control state of task in time before its 
execution, and it does not enforce omitting dependencies of affected task.
   
   ### Use case/motivation
   
   Our operators of airflow want to skip some task instances from the airflow 
GUI, especially in the case the task instance was not yet scheduled for 
execution.
   Technically it does not make sense with the current behaviour, because with 
Trigger rule: none_failed it enforce excution of depended task immediatelly 
once TI state is set to skipped and dependencies of the affected task are 
ommited.
   
   We have already implemented the proposed feature easy way by: Our task 
instance is checking its notes for strings:
   [skip], [stop], if text like these is seen in task notes once task is 
executed it set its state to "skipped" or "stopped", but our operators demands 
full support of the GUI via button.
   
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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