Skip to content

Commit 83efec9

Browse files
committed
Run chaos-monkey in go-routine to avoid blocking the operator
1 parent c9f86f3 commit 83efec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deployment/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func New(config Config, deps Dependencies, apiObject *api.ArangoDeployment) (*De
137137
}
138138
if config.AllowChaos {
139139
d.chaosMonkey = chaos.NewMonkey(deps.Log, d)
140-
d.chaosMonkey.Run(d.stopCh)
140+
go d.chaosMonkey.Run(d.stopCh)
141141
}
142142

143143
return d, nil

0 commit comments

Comments
 (0)