eust-w
2864d2aa11
⚡ Process deletion targets concurrently within each phase
...
executeProjectDeletion processed every target (runtime, then workspace,
then bos, then records) strictly one at a time — for a project with
thousands of real runs, that meant thousands of sequential K8s/BOS/Mongo
round trips. Observed live on Fanyu: BLF-data's runtime phase (stopping
4,641 runs) took tens of minutes at that pace.
Replaced the per-target sequential loop with a bounded worker pool
(PROJECT_DELETION_TARGET_CONCURRENCY, default 12) applied within each
phase — targets of the same kind now run concurrently, but phases still
run strictly in order (runtime, then workspace, then bos, then records),
preserving the "stop/verify runtime, then remove files, then DB"
ordering the plan is built with. The one-time phase-transition safety
checks (wait for in-flight human work, re-verify runtime absence,
revalidate references) still run exactly once, at the same point,
between the runtime and workspace phases.
Every read-modify-write of shared task state (a target's Status/Error,
and every persist() call) is guarded by a mutex; the actual I/O
(deleteProjectTarget) runs unlocked so workers genuinely overlap. Added
TestProjectDeletionExecutesTargetsConcurrentlyAndCompletes (30 runs) to
lock in that concurrent execution reaches the same end state — every
target done, every workspace directory removed, project record gone —
as the old sequential loop. Full suite passes under -race with no
warnings; 75 pre-existing unrelated failures unchanged.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-23 04:30:13 +08:00
..
2026-09-09 04:53:04 +08:00
2026-09-09 04:53:04 +08:00
2026-07-10 17:16:38 +08:00
2026-09-08 23:19:12 +08:00
2026-09-08 23:19:12 +08:00
2026-09-22 14:30:50 +08:00
2026-09-22 14:30:50 +08:00
2026-09-22 14:30:50 +08:00
2026-09-22 14:30:50 +08:00
2026-09-22 14:30:50 +08:00
2026-09-22 14:04:59 +08:00
2026-09-22 14:30:50 +08:00
2026-09-21 11:30:03 +08:00
2026-09-22 14:04:59 +08:00
2026-09-22 14:30:50 +08:00
2026-08-20 09:00:11 +08:00
2026-09-17 18:40:06 +08:00
2026-09-17 18:40:06 +08:00
2026-09-18 13:34:20 +08:00
2026-09-22 13:29:30 +08:00
2026-09-17 09:38:08 +08:00
2026-09-17 09:38:08 +08:00
2026-09-22 13:29:30 +08:00
2026-09-22 13:29:30 +08:00
2026-09-21 04:02:27 +08:00
2026-09-22 13:29:30 +08:00
2026-09-18 00:13:48 +08:00
2026-09-09 02:31:31 +08:00
2026-09-17 19:28:50 +08:00
2026-09-21 15:45:58 +08:00
2026-09-22 14:30:50 +08:00
2026-09-17 11:32:40 +08:00
2026-09-18 13:34:20 +08:00
2026-09-17 22:28:02 +08:00
2026-09-21 15:16:11 +08:00
2026-09-17 14:42:45 +08:00
2026-09-22 13:29:30 +08:00
2026-09-04 06:30:53 +08:00
2026-09-22 13:45:29 +08:00
2026-09-17 11:32:40 +08:00
2026-09-22 14:30:50 +08:00
2026-09-17 15:01:40 +08:00
2026-09-17 18:40:06 +08:00
2026-09-17 18:40:06 +08:00
2026-09-21 15:09:48 +08:00
2026-09-21 15:36:06 +08:00
2026-09-21 11:30:03 +08:00
2026-09-21 12:26:39 +08:00
2026-09-17 19:19:43 +08:00
2026-09-17 19:28:50 +08:00
2026-09-17 11:32:40 +08:00
2026-09-17 18:40:06 +08:00
2026-09-17 18:40:06 +08:00
2026-09-17 19:19:43 +08:00
2026-09-17 19:19:43 +08:00
2026-09-21 12:26:39 +08:00
2026-09-21 04:00:01 +08:00
2026-09-21 15:45:58 +08:00
2026-09-21 02:48:38 +08:00
2026-09-21 12:26:39 +08:00
2026-07-28 22:17:02 +08:00
2026-08-27 07:56:15 +08:00
2026-08-27 07:56:15 +08:00
2026-09-22 14:30:50 +08:00
2026-09-22 14:04:59 +08:00
2026-09-01 05:45:09 +08:00
2026-08-29 07:47:18 +08:00
2026-08-27 04:11:10 +08:00
2026-09-07 22:38:47 +08:00
2026-09-10 23:21:44 +08:00
2026-09-16 20:44:46 +08:00
2026-09-08 18:29:26 +08:00
2026-09-10 23:21:44 +08:00
2026-09-10 20:46:38 +08:00
2026-09-22 14:30:50 +08:00
2026-09-22 14:30:50 +08:00
2026-08-20 09:00:11 +08:00
2026-08-20 09:00:11 +08:00
2026-09-08 13:53:56 +08:00
2026-07-10 17:16:38 +08:00
2026-08-31 21:25:47 +08:00
2026-09-03 05:08:24 +08:00
2026-08-18 12:22:11 +08:00
2026-09-08 13:17:03 +08:00
2026-08-24 15:51:05 +08:00
2026-09-08 13:17:03 +08:00
2026-06-18 13:06:24 +08:00
2026-06-18 13:02:30 +08:00
2026-06-18 13:02:30 +08:00
2026-09-21 11:30:03 +08:00
2026-09-22 14:30:50 +08:00
2026-09-18 02:08:07 +08:00
2026-09-18 02:08:07 +08:00
2026-08-22 00:01:30 +08:00
2026-09-16 20:44:46 +08:00
2026-09-21 23:32:37 +08:00
2026-09-22 14:30:50 +08:00
2026-09-20 14:32:14 +08:00
2026-09-21 15:16:11 +08:00
2026-09-21 12:27:16 +08:00
2026-09-22 13:29:30 +08:00
2026-09-21 20:25:05 +08:00
2026-08-20 09:00:11 +08:00
2026-09-22 14:30:50 +08:00
2026-09-14 15:47:44 +08:00
2026-09-22 14:04:59 +08:00
2026-09-06 22:53:38 +08:00
2026-09-11 11:50:21 +08:00
2026-09-16 04:00:55 +08:00
2026-08-29 04:10:10 +08:00
2026-08-29 04:10:10 +08:00
2026-09-21 15:16:11 +08:00
2026-09-20 15:39:47 +08:00
2026-09-22 14:30:50 +08:00
2026-09-16 04:00:55 +08:00
2026-08-29 18:52:31 +08:00
2026-09-21 11:30:03 +08:00
2026-09-09 19:08:08 +08:00
2026-09-22 13:29:30 +08:00
2026-09-22 14:30:50 +08:00
2026-08-20 09:00:11 +08:00
2026-06-29 01:26:14 +08:00
2026-09-06 12:19:49 +08:00
2026-09-06 12:19:49 +08:00
2026-09-22 14:04:59 +08:00
2026-09-06 10:06:52 +08:00
2026-07-10 17:16:38 +08:00
2026-09-22 14:04:59 +08:00
2026-08-29 07:47:18 +08:00
2026-07-29 00:50:08 +08:00
2026-07-29 00:50:08 +08:00
2026-09-22 14:04:59 +08:00
2026-09-03 11:58:59 +08:00
2026-07-07 18:57:49 +08:00
2026-08-19 03:08:37 +08:00
2026-09-22 14:30:50 +08:00
2026-08-24 00:09:11 +08:00
2026-08-29 07:47:18 +08:00
2026-07-13 17:10:17 +08:00
2026-09-08 13:17:03 +08:00
2026-09-10 03:43:30 +08:00
2026-09-08 16:46:51 +08:00
2026-09-11 04:25:17 +08:00
2026-09-23 04:30:13 +08:00
2026-09-23 04:30:13 +08:00
2026-09-08 02:44:47 +08:00
2026-09-22 14:30:50 +08:00
2026-09-22 13:35:30 +08:00
2026-09-22 14:04:59 +08:00
2026-09-22 13:35:30 +08:00
2026-06-16 13:04:46 +08:00
2026-06-16 13:04:46 +08:00
2026-09-11 18:06:30 +08:00
2026-09-11 18:06:30 +08:00
2026-09-11 18:06:30 +08:00
2026-08-19 03:08:37 +08:00
2026-08-20 04:35:53 +08:00
2026-09-21 11:30:03 +08:00
2026-09-20 15:39:47 +08:00
2026-09-22 14:30:50 +08:00
2026-09-22 14:04:59 +08:00
2026-09-21 18:03:52 +08:00
2026-09-10 19:13:51 +08:00
2026-09-22 00:47:33 +08:00
2026-09-22 14:30:50 +08:00
2026-09-20 14:16:31 +08:00
2026-09-21 23:29:30 +08:00
2026-09-22 13:45:29 +08:00
2026-09-22 00:47:33 +08:00
2026-09-22 13:45:29 +08:00
2026-09-22 13:45:29 +08:00
2026-09-18 15:25:30 +08:00
2026-09-17 18:40:06 +08:00
2026-09-22 13:45:29 +08:00
2026-09-22 13:45:29 +08:00
2026-08-19 03:08:37 +08:00
2026-09-22 14:30:50 +08:00
2026-09-21 15:09:48 +08:00
2026-09-22 14:30:50 +08:00
2026-09-21 16:21:16 +08:00
2026-09-22 14:04:59 +08:00
2026-09-21 16:21:16 +08:00
2026-09-22 14:04:59 +08:00
2026-09-21 16:58:04 +08:00
2026-06-17 13:49:36 +08:00
2026-09-20 20:40:07 +08:00
2026-07-10 17:16:38 +08:00
2026-08-28 21:26:21 +08:00
2026-09-22 19:30:04 +08:00
2026-08-31 13:27:18 +08:00
2026-09-21 11:30:03 +08:00
2026-09-22 14:04:59 +08:00
2026-09-06 16:23:15 +08:00