Skip to content

feat(config/1.4): 支持重试部分命令,并允许指定命令重试间隔 - #408

Open
DuckDuckStudio wants to merge 4 commits into
chore/config-version-update/1.4from
feat/config/1.4/git.retry_interval
Open

DuckDuckStudio wants to merge 4 commits into
chore/config-version-update/1.4from
feat/config/1.4/git.retry_interval

Conversation

@DuckDuckStudio

@DuckDuckStudio DuckDuckStudio commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

@DuckDuckStudio DuckDuckStudio added DEV-开发分支合并 开发分支的合并PR 新功能 希望实现新功能 labels Sep 27, 2026
@DuckDuckStudio
DuckDuckStudio marked this pull request as ready for review September 27, 2026 17:45
@DuckDuckStudio DuckDuckStudio added the DEV-测试通过 通过测试 label Sep 27, 2026
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from 2691a91 to 7214568 Compare September 27, 2026 18:33
@DuckDuckStudio
DuckDuckStudio changed the base branch from main to refactor/plr0402/r0402/from-import September 27, 2026 18:35
@DuckDuckStudio
DuckDuckStudio added this pull request to stack #410 September 27, 2026 18:35
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from 7214568 to 879e36a Compare September 27, 2026 18:53
@DuckDuckStudio
DuckDuckStudio removed this pull request from stack #410 September 27, 2026 18:53
@DuckDuckStudio
DuckDuckStudio changed the base branch from refactor/plr0402/r0402/from-import to fix/func/constant/paths/SUNDRY_LOCATION September 27, 2026 18:54
@DuckDuckStudio
DuckDuckStudio added this pull request to stack #412 September 27, 2026 18:54
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from 879e36a to d6cacca Compare September 27, 2026 19:03
Base automatically changed from fix/func/constant/paths/SUNDRY_LOCATION to main September 27, 2026 19:07
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from d6cacca to 37ab2ea Compare September 27, 2026 19:07
@DuckDuckStudio
DuckDuckStudio removed this pull request from stack #412 September 27, 2026 19:16
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch 2 times, most recently from d1b9aa7 to 6f9c591 Compare September 27, 2026 19:59
@DuckDuckStudio
DuckDuckStudio added this pull request to stack #417 September 27, 2026 20:00
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from 6f9c591 to 6fa29e4 Compare September 28, 2026 03:38
@DuckDuckStudio
DuckDuckStudio removed this pull request from stack #417 September 28, 2026 04:56
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from 6fa29e4 to 67e0a05 Compare September 28, 2026 04:57
@DuckDuckStudio
DuckDuckStudio changed the base branch from main to docs/config/1.4 September 28, 2026 04:57
@DuckDuckStudio
DuckDuckStudio added this pull request to stack #420 September 28, 2026 04:57
@DuckDuckStudio
DuckDuckStudio removed this pull request from stack #420 September 28, 2026 05:23
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from 67e0a05 to 9977d5d Compare September 28, 2026 05:24
@DuckDuckStudio
DuckDuckStudio changed the base branch from docs/config/1.4 to main September 28, 2026 05:24
@DuckDuckStudio
DuckDuckStudio added this pull request to stack #422 September 28, 2026 05:24
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch 2 times, most recently from ca2eb68 to 1a37793 Compare October 1, 2026 10:38
@DuckDuckStudio
DuckDuckStudio removed this pull request from stack #422 October 1, 2026 11:17
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from 1a37793 to be787d0 Compare October 1, 2026 11:29
@DuckDuckStudio
DuckDuckStudio added this pull request to stack #433 October 1, 2026 11:42
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from be787d0 to 0dd7871 Compare October 1, 2026 12:12
@DuckDuckStudio DuckDuckStudio removed the DEV-测试通过 通过测试 label Oct 1, 2026
@DuckDuckStudio
DuckDuckStudio removed this pull request from stack #433 October 1, 2026 12:13
@DuckDuckStudio
DuckDuckStudio changed the base branch from main to chore/config-version-update/1.4 October 1, 2026 12:14
@DuckDuckStudio
DuckDuckStudio added this pull request to stack #435 October 1, 2026 12:14
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch 2 times, most recently from d1edae7 to 9a2ddae Compare October 9, 2026 06:41
在有些地方(例如 Sundry 入口 `sundry.py`)会需要 `function.constant.general` 模块的其他常量(`SUNDRY_VERSION` 等),但不需要 `RETRY_INTERVAL`。
原先即使使用 `from...import` 也会初始化 `RETRY_INTERVAL`,如果这时初始化出现了错误(读取配置文件失败),就会输出一条意外的错误信息。
这个错误信息在初始化配置文件时显得格外意外。

这个提交改用 `__getattr__` 函数,在第一次读取 `RETRY_INTERVAL` 时(`RETRY_INTERVAL is None`)调用 `_get_retry_interval` 函数初始化,后续(`RETRY_INTERVAL is not None`)直接使用之前初始化的值。
此修改依赖于配置文件 1.4 中的 git.retry_interval 配置
@DuckDuckStudio
DuckDuckStudio force-pushed the feat/config/1.4/git.retry_interval branch from 9a2ddae to 7ca4dee Compare October 9, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DEV-开发分支合并 开发分支的合并PR 新功能 希望实现新功能

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 允许配置重试联网的 Git 操作

1 participant