kaxil commented on a change in pull request #13037:
URL: https://github.com/apache/airflow/pull/13037#discussion_r637973164
##########
File path: airflow/www/views.py
##########
@@ -1811,16 +1811,43 @@ def _mark_task_instance_state( # pylint:
disable=too-many-arguments
from airflow.api.common.experimental.mark_tasks import set_state
if confirmed:
- altered = set_state(
- tasks=[task],
- execution_date=execution_date,
- upstream=upstream,
- downstream=downstream,
- future=future,
- past=past,
- state=state,
- commit=True,
- )
+ with create_session() as session:
Review comment:
Can you add tests for it @yuqian90
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]