Michael Suchacz and Claude
b7462fb256
feat: improve transaction safety in CompleteJob function ( #17970 )
...
This PR refactors the CompleteJob function to use database transactions
more consistently for better atomicity guarantees. The large function
was broken down into three specialized handlers:
- completeTemplateImportJob
- completeWorkspaceBuildJob
- completeTemplateDryRunJob
Each handler now uses the Database.InTx wrapper to ensure all database
operations for a job completion are performed within a single
transaction, preventing partial updates in case of failures.
Added comprehensive tests for transaction behavior for each job type.
Fixes #17694
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-authored-by: Claude <noreply@anthropic.com >
2025-05-21 16:48:51 +02:00
..
2025-05-20 17:07:50 +02:00
2025-05-02 17:29:57 +01:00
2025-05-20 21:20:56 +01:00
2025-03-26 01:56:39 -05:00
2025-03-26 01:56:39 -05:00
2025-05-20 10:09:53 -05:00
2025-05-20 10:09:53 -05:00
2025-03-04 17:10:12 +00:00
2025-05-20 21:20:56 +01:00
2025-03-04 00:46:49 +11:00
2025-04-16 10:37:09 -06:00
2025-03-26 01:56:39 -05:00
2025-05-16 11:47:59 -05:00
2025-03-26 01:56:39 -05:00
2025-04-10 11:36:27 -06:00
2025-05-20 15:22:44 +02:00
2025-04-28 12:20:07 -05:00
2025-05-20 15:22:44 +02:00
2025-04-02 16:19:23 +01:00
2025-05-14 14:52:22 +02:00
2025-05-19 12:05:35 +04:00
2025-05-14 14:52:22 +02:00
2025-04-22 16:21:15 +00:00
2025-05-21 16:48:51 +02:00
2025-03-18 00:02:47 +01:00
2025-05-20 21:20:56 +01:00
2025-03-26 01:56:39 -05:00
2025-04-09 13:59:41 +10:00
2025-03-26 01:56:39 -05:00
2025-05-16 11:47:59 -05:00
2025-03-26 01:56:39 -05:00
2025-03-26 01:56:39 -05:00
2025-03-04 00:46:49 +11:00
2025-05-15 15:32:52 +01:00
2025-03-27 17:30:25 +00:00
2025-04-08 14:15:14 -05:00
2025-03-26 01:56:39 -05:00
2025-05-20 10:09:53 -05:00
2025-03-31 10:55:44 -04:00
2025-04-08 14:15:14 -05:00
2025-03-26 01:56:39 -05:00
2025-05-02 17:29:57 +01:00
2025-05-02 17:29:57 +01:00
2025-05-19 12:56:10 +03:00
2025-04-09 09:21:17 +01:00
2025-04-09 09:21:17 +01:00
2025-05-02 17:29:57 +01:00
2025-04-22 16:21:15 +00:00
2025-04-22 16:21:15 +00:00
2025-05-15 15:32:52 +01:00
2025-05-15 15:32:52 +01:00
2025-05-15 15:32:52 +01:00
2025-03-31 09:40:24 -03:00
2025-03-31 09:40:24 -03:00
2025-04-15 13:27:23 +02:00
2025-03-10 13:10:34 +01:00
2025-03-21 13:04:30 +00:00
2025-03-26 01:56:39 -05:00
2025-04-28 14:51:33 -06:00
2025-04-28 14:51:33 -06:00
2025-03-05 22:43:18 +01:00
2025-03-05 22:43:18 +01:00
2025-05-20 10:45:12 -05:00
2025-05-20 10:45:12 -05:00
2025-04-07 10:35:28 +02:00
2025-02-20 09:58:04 +02:00
2025-02-26 21:06:51 +02:00
2025-04-15 13:27:23 +02:00
2025-05-19 16:05:39 +01:00
2025-05-19 16:05:39 +01:00
2025-04-15 10:55:30 +02:00
2025-04-15 10:55:30 +02:00
2025-05-15 17:55:17 -05:00
2025-05-15 17:55:17 -05:00
2025-04-17 14:51:50 -06:00
2025-04-17 14:51:50 -06:00
2025-04-08 14:15:14 -05:00
2025-04-08 14:15:14 -05:00
2025-04-16 10:37:09 -06:00
2025-04-16 09:27:35 -05:00
2025-03-27 10:03:53 +00:00
2025-03-27 10:03:53 +00:00
2025-05-20 17:07:50 +02:00
2025-05-19 12:56:10 +03:00
2025-04-16 10:37:09 -06:00
2025-05-20 17:07:50 +02:00
2025-05-20 17:07:50 +02:00
2025-04-14 15:34:50 +02:00
2025-05-20 10:09:53 -05:00
2025-02-20 05:09:26 +00:00
2025-04-23 08:45:26 -05:00
2025-05-20 10:09:53 -05:00
2025-04-16 10:37:09 -06:00
2025-03-26 01:56:39 -05:00