Vini Brasil
32f5e74449
Skip lock acquisition in CrewTrainingHandler.load when file is missing ( #5935 )
...
Every agent kickoff calls _use_trained_data, which calls
CrewTrainingHandler(...).load(). Since #4827 wrapped load() in store_lock,
that means every kickoff acquires the cross-process (Redis-backed when
REDIS_URL is set) lock even on deployments that never train and have no
trained-agents file on disk.
Move the missing/empty-file short-circuit above store_lock so the lock is
only acquired when there is actually a file to read. save() and the real
read remain locked.
2026-05-26 12:52:31 -03:00
..
2026-04-02 04:46:07 +08:00
2026-05-26 12:52:31 -03:00
2026-05-12 11:22:13 -07:00
2026-05-06 20:46:46 +08:00
2025-10-20 14:10:19 -07:00
2025-12-04 16:53:19 -05:00
2026-05-23 01:20:15 +08:00
2025-12-05 13:23:26 -05:00
2026-04-08 21:02:25 +08:00
2026-03-31 08:11:21 +08:00
2026-05-12 12:39:12 -07:00
2026-05-06 20:46:46 +08:00
2026-05-06 20:46:46 +08:00
2025-11-29 16:55:24 -05:00
2025-11-05 07:19:09 -05:00
2026-04-07 03:22:30 +08:00
2025-10-20 14:10:19 -07:00
2026-05-20 14:38:25 -03:00
2026-02-13 21:34:37 -03:00
2026-05-04 18:42:12 +08:00
2026-05-12 11:22:13 -07:00
2026-04-09 04:29:53 +08:00
2026-05-06 20:46:46 +08:00
2026-05-26 12:52:31 -03:00
2025-10-20 14:10:19 -07:00
2026-03-15 18:33:17 -07:00
2026-04-01 03:48:41 +08:00
2026-05-25 19:24:02 -07:00
2026-05-06 20:46:46 +08:00
2026-05-06 20:46:46 +08:00
2026-01-22 17:44:03 -08:00
2026-01-23 15:13:25 -05:00
2025-10-20 14:10:19 -07:00
2026-05-12 11:22:13 -07:00
2025-12-01 18:56:56 -05:00
2026-04-07 03:22:30 +08:00
2026-05-21 14:53:40 +08:00
2025-10-20 14:10:19 -07:00
2026-02-04 15:40:22 -05:00
2026-01-23 15:13:25 -05:00
2026-05-01 11:46:07 -04:00
2025-10-20 14:10:19 -07:00
2026-03-25 03:42:39 -03:00
2025-11-24 17:35:12 -05:00
2026-03-09 09:38:35 -04:00
2026-04-28 14:57:49 +08:00
2025-10-20 14:10:19 -07:00
2026-05-12 00:26:31 +08:00
2026-03-26 03:28:17 -03:00
2025-10-20 14:10:19 -07:00
2026-05-16 02:46:35 +08:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2026-04-21 15:57:19 -03:00
2025-11-29 16:55:24 -05:00
2026-04-17 03:02:03 +08:00
2026-05-03 14:17:03 +08:00
2026-02-25 17:13:34 -05:00
2026-04-01 18:08:37 -03:00