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:
@@ -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))
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user