Commit 37ba221b authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Expose some statistics from the simple scheduler, so that the status page does...

Expose some statistics from the simple scheduler, so that the status page does not break when it is enabled.
parent f2357097
Pipeline #4563 passed with stages
in 2 minutes and 52 seconds
......@@ -123,5 +123,9 @@ class ZoeSimpleScheduler(ZoeBaseScheduler):
"""Scheduler statistics."""
return {
'queue_length': len(self.fifo_queue),
'termination_threads_count': len(self.async_threads)
'running_length': 0,
'termination_threads_count': len(self.async_threads),
'queue': [s.id for s in self.fifo_queue],
'running_queue': [],
'platform_stats': {}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment