server: refactor sleep handling, allow access /metrics during sleep (#27376)
* add cached responses
* refactor on_sleeping_state
* allow accessing metrics during sleep
* metrics task should not reset timer
* updated docs
* fix
* fix get_res_model_info
* add test
* fix a race condition
* split metrics and slots tasks / results
* should_reset_buckets