Comments (3)
@yi-Xu-0100 最近我也遇到类似问题了,昨天开始已经试着加这个功能了。解决这个问题需要2个修改点:
- 超时失败。 为git的指令增加timeout的参数例如:
timeout 30 git pull -p # 30秒后失败
- 失败后重试。 因超时引起的失败,进行重试。
目前,这个超时失败这个我已经在[1]做了,失败重试也会在最近加进来。
[1] https://github.com/Yikun/hub-mirror-action/tree/paging
from hub-mirror-action.
我看到有时请求目的端的仓库是否创建也会 timeout ,然后会尝试 Create non-exist repo...
,这里是否应该直接选择创建仓库,并判断返回信息,是否包含 {"error":{"base":["已存在同地址仓库(忽略大小写)"]}}
,这样少了一个可能的请求,而且并不会对流程有影响。
from hub-mirror-action.
我看到有时请求目的端的仓库是否创建也会 timeout ,然后会尝试 Create non-exist repo... ,这里是否应该直接选择创建仓库,并判断返回信息,是否包含 {"error":{"base":["已存在同地址仓库(忽略大小写)"]}},这样少了一个可能的请求,而且并不会对流程有影响。
from hub-mirror-action.
Related Issues (20)
- github 私有仓库同步到gitee企业版私有仓库失败,配置文件如下 HOT 1
- 同步到gitlab如何使用呢 HOT 2
- 希望可以对自建Gitea进行支持 HOT 3
- 公共仓库间同步失败 HOT 4
- github 仓库同步到 gitee 仓库失败
- 希望可以添加对 sourcehut 的支持
- 希望添加清理缓存的功能 HOT 4
- 希望增加打印已成功仓库日志 HOT 9
- AttributeError: 'Hub' object has no attribute 'src_repo_base' HOT 4
- hub_mirror-action@v运行缓慢 HOT 2
- 为什么运行同步一直在下载系统安装东西,卡十几分钟都不行 HOT 5
- 同步目标源时创建仓库返回502 HOT 1
- 希望增加对codeup的支持
- 同步非private,但是fork的仓库同步如何做? HOT 2
- 应该如何避免总任务超时 HOT 2
- 同步gitee 失败 HOT 1
- error in gitee 同步github HOT 2
- github action处理python包PyYAML报错 HOT 2
- 【HELP】最近失败的频率有点高 HOT 1
- Permission denied (publickey) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hub-mirror-action.