HubSpot / Singularity

Scheduler (HTTP API and webapp) for running Mesos tasks—long running processes, one-off tasks, and scheduled jobs. #hubspot-open-source
http://getsingularity.com/
Apache License 2.0
823 stars 188 forks source link

Add endpoint and client call to retrieve scheduled tasks info #2260

Closed ashdza closed 2 years ago

ashdza commented 2 years ago

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.

issue: https://git.hubteam.com/HubSpot/PaaS-Run/issues/1588 context: https://hubspot.slack.com/archives/CD13L0XCY/p1642617864005200