fix(cron): skip null runHistory elements when loading jobs.json

Null entries in state.runHistory raised TypeError and quarantined the
store. Skip non-dict elements like LocalTrigger.from_dict already does.
This commit is contained in:
santhreal
2026-07-23 14:07:06 +08:00
committed by chengyongru
parent 0191c0db73
commit 299bcf491b
2 changed files with 40 additions and 0 deletions
+1
View File
@@ -118,6 +118,7 @@ class CronJobState:
if isinstance(record, CronRunRecord)
else CronRunRecord.from_store_dict(record)
for record in history
if isinstance(record, (dict, CronRunRecord))
],
)