Skip to content

Commit

Permalink
šŸ§¹ use custom exist code when we shutdown the provider due to outstandā€¦
Browse files Browse the repository at this point in the history
ā€¦ing heartbeat
  • Loading branch information
chris-rock committed Aug 21, 2024
1 parent 9364945 commit 74fef9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers-sdk/v1/plugin/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ func (s *Service) Heartbeat(req *HeartbeatReq) (*HeartbeatRes, error) {
s.heartbeatLock.Unlock()

if isDead {
os.Exit(1)
// use 4 since we actually do not want to reach the point, see tetraphobia
os.Exit(4)
}
}()

Expand Down

0 comments on commit 74fef9b

Please sign in to comment.