amoghrajesh commented on code in PR #68133:
URL: https://github.com/apache/airflow/pull/68133#discussion_r3393382809


##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/task_store.py:
##########
@@ -66,8 +65,12 @@ def value_is_json_representable(cls, v: JsonValue) -> 
JsonValue:
             serialized = json.dumps(v, allow_nan=False)
         except ValueError:
             raise ValueError("value contains non-finite numbers; NaN and Inf 
are not JSON representable")
-        if len(serialized) > _MAX_SERIALIZED_BYTES:
-            raise ValueError(f"value exceeds maximum serialized size of 
{_MAX_SERIALIZED_BYTES} bytes")
+        limit = conf.getint("state_store", "max_value_storage_bytes")

Review Comment:
   Kept it inline for now — the two checks have slightly different error 
messages and the logic is a single if-block each, so a shared helper would add 
indirection without much payoff. If a third call site appears later it's worth 
revisiting.
   
   ---
   Drafted-by: Claude Code (Sonnet 4.6) (no human review before posting)



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