1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2026-06-03 16:35:37 +02:00

Add backoff retry for store setup (#4964)

This commit is contained in:
Robert Kaussow
2025-03-17 07:16:16 +01:00
committed by GitHub
parent 8da135eacb
commit 9869f1be75
3 changed files with 23 additions and 2 deletions
+4
View File
@@ -90,6 +90,10 @@ func setupStore(ctx context.Context, c *cli.Command) (store.Store, error) {
return nil, fmt.Errorf("could not open datastore: %w", err)
}
if err = store.Ping(); err != nil {
return nil, err
}
if err := store.Migrate(ctx, c.Bool("migrations-allow-long")); err != nil {
return nil, fmt.Errorf("could not migrate datastore: %w", err)
}