Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion server/internal/orchestrator/swarm/postgres_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ func (s *PostgresService) Delete(ctx context.Context, rc *resource.Context) erro
Wait: true,
WaitTimeout: time.Minute,
})
if err != nil {
if errors.Is(err, docker.ErrNotFound) {
// Service is already deleted.
return nil
} else if err != nil {
return fmt.Errorf("failed to scale down postgres service before removal: %w", err)
}

Expand Down