@@ -45,22 +45,21 @@ def __init__(
4545 self .overall_progress_table = Table .grid ()
4646 self .overall_progress_table .add_row (self .progress_total )
4747 self .progress_table = Table .grid ()
48- self .progress_table .add_row (
49- Panel .fit (
50- self .overall_progress_table ,
51- title = "Overall Progress" ,
52- border_style = "green" ,
53- padding = (0 , 2 ),
54- )
48+
49+ self .overall_panel = Panel .fit (
50+ self .overall_progress_table ,
51+ title = "Overall Progress" ,
52+ border_style = "green" ,
53+ padding = (0 , 2 ),
5554 )
56- self .progress_table .add_row (
57- Panel .fit (
58- self .progress_status ,
59- title = "Task Exit Status" ,
60- border_style = "yellow" ,
61- padding = (0 , 2 ),
62- )
55+ self .exit_status_panel = Panel .fit (
56+ self .progress_status ,
57+ border_style = "yellow" ,
58+ padding = (0 , 2 ),
6359 )
60+
61+ self .progress_table .add_row (self .overall_panel )
62+ self .progress_table .add_row (self .exit_status_panel )
6463 self .progress_live = Live (self .progress_table , refresh_per_second = 10 )
6564
6665 def task_started (self , task : Task ) -> None :
@@ -74,6 +73,8 @@ def task_started(self, task: Task) -> None:
7473 self .concurrent_count = workers
7574 self .total_hosts = hosts
7675
76+ self .exit_status_panel .title = task .name
77+
7778 self .successful = self .progress_status .add_task (
7879 "[green]Successful:" , total = self .total_hosts
7980 )
0 commit comments