sunpeek.core_methods.power_check.cache_service.persist_day_output#
- sunpeek.core_methods.power_check.cache_service.persist_day_output(day_output, sess, crd)#
Persist a single day-output to the DB.
Asserts all cache-match settings columns are non-NULL (they should be resolved by PowerCheckSettings.__init__). Catches IntegrityError from the uniqueness constraint (concurrent duplicate → skip).
Returns True if persisted, False if skipped (duplicate).
- Return type: