amoghrajesh commented on code in PR #67835:
URL: https://github.com/apache/airflow/pull/67835#discussion_r3338602704
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/task_state.py:
##########
@@ -272,4 +272,4 @@ def clear_task_state(
the ``map_index`` parameter is ignored.
"""
scope = _get_scope(dag_id, dag_run_id, task_id, map_index)
- get_state_backend().clear(scope, all_map_indices=all_map_indices,
session=session)
+ _db_backend.clear(scope, all_map_indices=all_map_indices, session=session)
Review Comment:
Agreed, `_clear_task_state_on_success` is called from the core API service,
so it should be DB-direct like the routes
--
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]