-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continue extension updation if modification conflict occurs (#2536)
#### What type of PR is this? /kind bug /area core /milestone 2.0 #### What this PR does / why we need it: When we initialize default extensions at Halo startup, updation of one extension is very likely to be failed due to modification conflict. Then, remaining extensions won't be updated anymore. Therefore, this PR resolve this problem by retrying updation with 3 times with interval 100ms and continue extension updation if modification conflict occurs. #### How to test 1. Fully initialize system(e.g.: Clear `~/halo-next` before starting Halo) 2. Update Role `authenticated` as you wish via Extension API 3. Restart Halo and check it again 4. Retry multiple times #### Does this PR introduce a user-facing change? ```release-note 修复系统默认数据无法正常更新的问题 ```
- Loading branch information
Showing
1 changed file
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters