Lunny Xiao
a100ac3306
Rework create/fork/adopt/generate repository to make sure resources will be cleanup once failed ( #31035 )
...
Fix #28144
To make the resources will be cleanup once failed. All repository
operations now follow a consistent pattern:
- 1. Create a database record for the repository with the status
being_migrated.
- 2. Register a deferred cleanup function to delete the repository and
its related data if the operation fails.
- 3. Perform the actual Git and database operations step by step.
- 4. Upon successful completion, update the repository’s status to
ready.
The adopt operation is a special case — if it fails, the repository on
disk should not be deleted.
2025-04-07 22:12:54 -07:00
..
2025-04-03 05:13:16 +00:00
2024-12-15 10:41:29 +00:00
2025-01-09 09:21:47 +08:00
2025-03-31 01:53:48 -04:00
2025-01-09 21:09:11 +08:00
2025-04-01 10:14:01 +00:00
2025-04-01 09:42:10 +00:00
2025-03-10 15:57:17 +08:00
2025-04-01 10:14:01 +00:00
2025-03-31 01:53:48 -04:00
2025-03-31 01:53:48 -04:00
2025-03-31 01:53:48 -04:00
2025-01-09 09:21:47 +08:00
2025-01-09 09:21:47 +08:00
2025-04-06 19:35:08 +00:00
2025-04-06 19:35:08 +00:00
2025-04-02 17:31:32 +00:00
2025-04-01 10:14:01 +00:00
2025-03-31 01:53:48 -04:00
2025-03-29 17:32:28 -04:00
2025-03-31 01:53:48 -04:00
2025-01-08 03:44:32 +00:00
2025-03-13 07:04:50 +08:00
2025-04-01 10:14:01 +00:00
2025-04-01 10:14:01 +00:00
2025-04-01 10:14:01 +00:00
2025-03-24 20:26:58 -07:00
2025-04-01 10:14:01 +00:00
2025-04-01 10:14:01 +00:00
2025-03-31 01:53:48 -04:00
2025-04-06 17:34:59 +00:00
2025-03-14 00:28:57 +00:00
2025-01-09 09:21:47 +08:00
2025-03-31 01:53:48 -04:00
2025-04-01 10:14:01 +00:00
2025-03-23 19:52:43 +00:00
2025-04-01 10:14:01 +00:00
2025-02-20 09:57:40 +00:00
2025-04-01 10:14:01 +00:00
2025-03-13 07:04:50 +08:00
2025-03-31 01:53:48 -04:00
2025-03-31 01:53:48 -04:00
2025-03-31 01:53:48 -04:00
2025-04-07 22:12:54 -07:00
2025-03-10 15:57:17 +08:00
2025-02-21 00:05:40 +08:00
2025-04-05 11:56:48 +08:00
2025-04-01 10:14:01 +00:00
2025-04-01 10:14:01 +00:00
2025-04-02 21:47:31 -07:00
2024-12-24 01:54:19 +00:00
2025-03-31 01:53:48 -04:00
2025-01-21 18:57:07 +00:00
2025-04-06 19:35:08 +00:00
2025-04-01 10:14:01 +00:00
2025-02-20 09:57:40 +00:00
2025-03-31 01:53:48 -04:00
2025-04-01 10:14:01 +00:00
2025-01-09 09:21:47 +08:00
2025-04-05 11:56:48 +08:00
2025-04-01 10:14:01 +00:00
2025-04-01 10:14:01 +00:00
2025-03-11 10:40:38 -07:00