This PR adds an endpoint to StateResource and client call to SingularityClient that enable retrieval of the current SingularityScheduledTasksInfo. SingularityScheduledTasksInfo contains the number of late task and maximum task lag, both of which will be checked in Serenity before decommissioning agents in order to implement a slow drain and prevent decommissioning too quickly.
This PR adds an endpoint to
StateResource
and client call toSingularityClient
that enable retrieval of the currentSingularityScheduledTasksInfo
.SingularityScheduledTasksInfo
contains the number of late task and maximum task lag, both of which will be checked in Serenity before decommissioning agents in order to implement a slow drain and prevent decommissioning too quickly.issue: https://git.hubteam.com/HubSpot/PaaS-Run/issues/1588 context: https://hubspot.slack.com/archives/CD13L0XCY/p1642617864005200