dashboard/app: mark managers as bad after 6 hours of inactivity

It should not take more than 6 hours to rebuild all kernels.
So it's better to highlight bad managers earlier.
This commit is contained in:
Dmitry Vyukov 2019-03-22 15:05:45 +01:00
parent 028c09511b
commit 6155cc0988

View File

@ -836,7 +836,7 @@ func loadManagers(c context.Context, accessLevel AccessLevel) ([]*uiManager, err
CurrentBuild: uiBuilds[mgr.Namespace+"|"+mgr.CurrentBuild],
FailedBuildBugLink: bugLink(mgr.FailedBuildBug),
LastActive: mgr.LastAlive,
LastActiveBad: now.Sub(mgr.LastAlive) > 12*time.Hour,
LastActiveBad: now.Sub(mgr.LastAlive) > 6*time.Hour,
CurrentUpTime: mgr.CurrentUpTime,
MaxCorpus: stats.MaxCorpus,
MaxCover: stats.MaxCover,