likyh opened a new issue, #3061: URL: https://github.com/apache/incubator-devlake/issues/3061
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Wait more time to prevent long-time collection cancelled by network problems. Some users' Jira server or other data source servers may deploy so far with DevLake. It may cause request to fail because of a network error when collecting data, and then DevLake needs to take lots of time to restart collection several times if the network is instability. Consecutive retry cannot handle this situation because network instability may exist for several seconds. So, I prefer to add another retry function to handle this situation. It will stop other workers and request base endpoint to confirm if the network is ok. This network retry function will request base endpoint immediately after other worker fails more than 3 times. If a network problem exists, it will check the network serially and wait for `power(retryTime, 2)` seconds before the next retry. ### Use case _No response_ ### Related issues now retry like this: #3054 ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
