You've already forked woodpecker
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user