From 0b4ad578e407fb0e6bdc61ba50b9ecb31c7bea03 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 26 Jun 2026 15:54:48 +0800 Subject: [PATCH] fix(models): make PendingSubmission.app_name optional for backward compat Older pending records (created before app_name was required) may not have the field. If such a record exists in the date-sharded pending store, any operation that loads the store fails Pydantic validation and blocks prepare/list/get/cancel. Make app_name optional with default None on the persistence model while keeping it required in PrepareSubmitJobRequest, so new submissions still must provide it but old records can be loaded and cancelled. --- spark_executor/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spark_executor/models.py b/spark_executor/models.py index b32645b..798d72b 100644 --- a/spark_executor/models.py +++ b/spark_executor/models.py @@ -86,7 +86,7 @@ class Connection(BaseModel): class PendingSubmission(BaseModel): pending_id: str - app_name: str + app_name: str | None = None connection: str master: str