1fanwang commented on code in PR #72907:
URL: https://github.com/apache/airflow/pull/72907#discussion_r3992594548
##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_state_store.py:
##########
@@ -87,7 +87,18 @@ def set_task_state_store(
) -> None:
"""Set a task state store key, creating or updating the row."""
scope = _get_task_scope_for_ti(task_instance_id, session)
- get_state_backend().set(scope, key, json.dumps(body.value),
expires_at=body.expires_at, session=session)
+ try:
+ get_state_backend().set(
+ scope, key, json.dumps(body.value), expires_at=body.expires_at,
session=session
+ )
+ except ValueError:
Review Comment:
thanks for the pointer! done in
https://github.com/apache/airflow/pull/72907/commits/c3aba2492bfcfde3852d25bc77c9b5bc281073db
--
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]