CaIon
9976b311ef
refactor(task): enhance UpdateWithStatus for CAS updates and add integration tests
...
- Updated UpdateWithStatus method to use Model().Select("*").Updates() for conditional updates, preventing GORM's INSERT fallback.
- Introduced comprehensive integration tests for UpdateWithStatus, covering scenarios for winning and losing CAS updates, as well as concurrent updates.
- Added task_cas_test.go to validate the new behavior and ensure data integrity during concurrent state transitions.
2026-02-22 16:01:19 +08:00
..
2026-02-19 22:29:40 +01:00
2025-10-11 15:30:09 +08:00
2025-06-07 12:26:23 +08:00
2026-02-22 16:00:27 +08:00
2026-02-07 01:15:59 +08:00
2026-02-12 01:51:27 +08:00
2025-12-13 18:09:10 +08:00
2026-01-12 18:47:45 +08:00
2026-01-14 22:29:43 +08:00
2026-01-14 22:29:43 +08:00
2026-01-14 22:29:43 +08:00
2026-01-14 22:29:43 +08:00
2026-02-19 22:29:40 +01:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2026-02-12 14:58:17 +08:00
2026-02-22 16:00:27 +08:00
2026-02-04 18:23:17 +08:00
2026-02-04 18:23:17 +08:00
2026-02-06 23:41:51 +08:00
2025-10-30 21:16:42 +08:00
2026-01-15 14:43:53 +08:00
2025-12-30 17:52:57 +08:00
2025-11-21 18:17:01 +08:00
2026-02-22 16:00:27 +08:00
2025-10-11 15:30:09 +08:00
2025-10-11 15:30:09 +08:00
2026-01-11 21:38:07 +08:00
2026-01-26 19:57:41 +08:00
2026-02-07 01:15:59 +08:00
2025-10-11 15:30:09 +08:00
2025-08-15 16:54:26 +08:00
2026-02-03 17:40:43 +08:00
2026-02-22 16:01:19 +08:00
2026-02-22 16:01:19 +08:00
2026-02-22 16:01:19 +08:00
2025-10-11 15:30:09 +08:00
2026-02-04 18:23:17 +08:00
2025-12-02 21:38:58 +08:00
2025-12-02 21:34:39 +08:00
2025-12-02 21:34:39 +08:00
2025-10-11 15:30:09 +08:00
2026-01-26 20:20:30 +08:00
2025-10-11 15:30:09 +08:00