Let agent retry to connecting to server (#1728)

Closes https://github.com/woodpecker-ci/woodpecker/issues/1721

PR introduces connection retries during agent startup.

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
This commit is contained in:
Alexander Matyushentsev
2023-05-03 04:31:29 -07:00
committed by GitHub
parent 80444c73af
commit 049c26229d
4 changed files with 49 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ func main() {
app.Name = "woodpecker-agent"
app.Version = version.String()
app.Usage = "woodpecker agent"
app.Action = loop
app.Action = runWithRetry
app.Commands = []*cli.Command{
{
Name: "ping",