Skip to content

Commit

Permalink
fix: add pooler to the list of services to reset
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Aug 12, 2024
1 parent d400387 commit dd74c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/reset/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func RestartDatabase(ctx context.Context, w io.Writer) error {

func restartServices(ctx context.Context) error {
// No need to restart PostgREST because it automatically reconnects and listens for schema changes
services := []string{utils.StorageId, utils.GotrueId, utils.RealtimeId}
services := []string{utils.StorageId, utils.GotrueId, utils.RealtimeId, utils.PoolerId}
result := utils.WaitAll(services, func(id string) error {
if err := utils.Docker.ContainerRestart(ctx, id, container.StopOptions{}); err != nil && !errdefs.IsNotFound(err) {
return errors.Errorf("Failed to restart %s: %w", id, err)
Expand Down

0 comments on commit dd74c3f

Please sign in to comment.