Kaap10 commented on code in PR #73753:
URL: https://github.com/apache/airflow/pull/73753#discussion_r4116089919


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/task_state_store.py:
##########
@@ -267,7 +267,12 @@ def patch_task_state_store(
             detail=f"Task state store key {key!r} not found",
         )
 
-    _get_db_backend().set(scope, key, json.dumps(body.value), 
expires_at=existing.expires_at, session=session)
+    try:
+        _get_db_backend().set(
+            scope, key, json.dumps(body.value), 
expires_at=existing.expires_at, session=session
+        )
+    except ValueError as e:

Review Comment:
   Good catch, updated the PR description to clarify - this is for parity with 
PUT and guards against domain error during execution. Thanks.



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