amoghrajesh commented on code in PR #67835:
URL: https://github.com/apache/airflow/pull/67835#discussion_r3338681739
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/task_state.py:
##########
@@ -227,9 +229,7 @@ def patch_task_state(
)
scope = _get_scope(dag_id, dag_run_id, task_id, map_index)
- get_state_backend().set(
- scope, key, json.dumps(body.value), expires_at=existing.expires_at,
session=session
- )
+ _db_backend.set(scope, key, json.dumps(body.value),
expires_at=existing.expires_at, session=session)
Review Comment:
Handled it in: [extracting a
function](https://github.com/apache/airflow/pull/67835/commits/d00a268a0c37bc3c96758f746e20570f9ee3d1f7)
##########
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:
Handled it in: [extracting a
function](https://github.com/apache/airflow/pull/67835/commits/d00a268a0c37bc3c96758f746e20570f9ee3d1f7)
--
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]