amoghrajesh commented on code in PR #67319: URL: https://github.com/apache/airflow/pull/67319#discussion_r3296175821
########## airflow-core/src/airflow/api_fastapi/core_api/datamodels/task_state.py: ########## @@ -40,6 +41,21 @@ class TaskStateCollectionResponse(BaseModel): class TaskStateBody(StrictBaseModel): - """Request body for setting a task state value.""" + """ + Request body for setting a task state value. + + ``expires_at`` controls expiry: + + - ``"default"``: apply the configured ``[state_store] default_retention_days``. + - ``null``: never expire. + - aware datetime: expire at that time. + """ + + value: str = Field(max_length=65535) Review Comment: It matches the TEXT column size (`64KB` limit in sql, which caps TEXT at 65535 bytes), and is consistent with the what we use here too: `TaskStatePatchBody` to avoid sending in a really big value through this. -- 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]
