GithubHelp home page GithubHelp logo

Comments (3)

Yikun avatar Yikun commented on August 10, 2024 2

@yi-Xu-0100 最近我也遇到类似问题了,昨天开始已经试着加这个功能了。解决这个问题需要2个修改点:

  1. 超时失败。 为git的指令增加timeout的参数例如:
timeout 30 git pull -p # 30秒后失败
  1. 失败后重试。 因超时引起的失败,进行重试。

目前,这个超时失败这个我已经在[1]做了,失败重试也会在最近加进来。

[1] https://github.com/Yikun/hub-mirror-action/tree/paging

from hub-mirror-action.

yi-Xu-0100 avatar yi-Xu-0100 commented on August 10, 2024

我看到有时请求目的端的仓库是否创建也会 timeout ,然后会尝试 Create non-exist repo... ,这里是否应该直接选择创建仓库,并判断返回信息,是否包含 {"error":{"base":["已存在同地址仓库(忽略大小写)"]}},这样少了一个可能的请求,而且并不会对流程有影响。

from hub-mirror-action.

Yikun avatar Yikun commented on August 10, 2024

我看到有时请求目的端的仓库是否创建也会 timeout ,然后会尝试 Create non-exist repo... ,这里是否应该直接选择创建仓库,并判断返回信息,是否包含 {"error":{"base":["已存在同地址仓库(忽略大小写)"]}},这样少了一个可能的请求,而且并不会对流程有影响。

这个是 #66 引起的问题,在5d45527 fix了

from hub-mirror-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.