(ctx context.Context)
| 321 | } |
| 322 | |
| 323 | func (s *server) defaultHeartbeat(ctx context.Context) error { |
| 324 | //nolint:gocritic // This is specifically for updating the last seen at timestamp. |
| 325 | return s.Database.UpdateProvisionerDaemonLastSeenAt(dbauthz.AsSystemRestricted(ctx), database.UpdateProvisionerDaemonLastSeenAtParams{ |
| 326 | ID: s.ID, |
| 327 | LastSeenAt: sql.NullTime{Time: s.timeNow(), Valid: true}, |
| 328 | }) |
| 329 | } |
| 330 | |
| 331 | // AcquireJob queries the database to lock a job. |
| 332 | // |
nothing calls this directly
no test coverage detected