fix shim reaper wait command execute blocked
wait no timeout will lead to event publish process hang in some special scenarios. Signed-off-by: botieking98 <botieking@gmail.com>
This commit is contained in:
@@ -308,7 +308,7 @@ func (l *remoteEventsPublisher) Publish(ctx context.Context, topic string, event
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
status, err := reaper.Default.Wait(cmd, c)
|
||||
status, err := reaper.Default.WaitTimeout(cmd, c, 30*time.Second)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "failed to publish event: %s", b.String())
|
||||
}
|
||||
|
Reference in New Issue
Block a user