Files
bakery-ia/services
Claude 0c4a941ca8 Fix critical double commit bug and Spanish holidays warning
CRITICAL FIX - Database Transaction:
- Removed duplicate commit logic from _store_in_db() inner function (lines 805-811)
- Prevents 'Method commit() can't be called here' error
- Now only outer scope handles commits (line 821 for new sessions, parent for parent sessions)
- Fixes issue where all 5 models trained successfully but failed to store in DB

MINOR FIX - Logging:
- Fixed Spanish holidays logger call (line 977-978)
- Removed invalid keyword arguments (region=, years=) from logger.info()
- Now uses f-string format consistent with rest of codebase
- Prevents 'Logger._log() got an unexpected keyword argument' warning

Impact:
- Training pipeline can now complete successfully
- Models will be stored in database after training
- No more cascading transaction failures
- Cleaner logs without warnings

Root cause: Double commit introduced during recent session management fixes
Related commits: 673108e, 74215d3, fd0a96e, b2de56e, e585e9f
2025-11-05 18:34:00 +00:00
..
2025-11-05 13:34:56 +01:00
2025-10-31 18:57:58 +01:00
2025-10-31 11:54:19 +01:00
2025-11-01 21:35:03 +01:00
2025-11-02 20:24:44 +01:00
2025-11-05 13:34:56 +01:00
2025-11-05 13:34:56 +01:00
2025-11-02 20:24:44 +01:00
2025-11-02 20:24:44 +01:00
2025-11-05 13:34:56 +01:00
2025-11-05 13:34:56 +01:00
2025-11-02 20:24:44 +01:00
2025-11-02 20:24:44 +01:00
2025-11-02 20:24:44 +01:00
2025-11-05 13:34:56 +01:00