mirror of https://github.com/coder/coder.git
do the same for the real heartbeat fn
This commit is contained in:
parent
7574a3c589
commit
efdfc9435a
|
@ -272,6 +272,9 @@ func (s *server) heartbeat(ctx context.Context) error {
|
|||
}
|
||||
|
||||
func (s *server) defaultHeartbeat(ctx context.Context) error {
|
||||
if ctx.Err() != nil {
|
||||
return nil // we are probably shutting down
|
||||
}
|
||||
//nolint:gocritic // This is specifically for updating the last seen at timestamp.
|
||||
return s.Database.UpdateProvisionerDaemonLastSeenAt(dbauthz.AsSystemRestricted(ctx), database.UpdateProvisionerDaemonLastSeenAtParams{
|
||||
ID: s.ID,
|
||||
|
|
Loading…
Reference in New Issue