@@ -872,11 +872,6 @@ def __repr__(self):
872
872
+ ">"
873
873
)
874
874
875
- @property
876
- def nbytes_in_memory (self ):
877
- tg : TaskGroup
878
- return sum ([tg ._nbytes_in_memory for tg in self ._groups ])
879
-
880
875
@property
881
876
def nbytes_total (self ):
882
877
tg : TaskGroup
@@ -922,10 +917,6 @@ class TaskGroup:
922
917
923
918
The total number of bytes that this task group has produced
924
919
925
- .. attribute:: nbytes_in_memory: int
926
-
927
- The number of bytes currently stored by this TaskGroup
928
-
929
920
.. attribute:: duration: float
930
921
931
922
The total amount of time spent on all tasks in this TaskGroup
@@ -944,7 +935,6 @@ class TaskGroup:
944
935
_states : dict
945
936
_dependencies : set
946
937
_nbytes_total : Py_ssize_t
947
- _nbytes_in_memory : Py_ssize_t
948
938
_duration : double
949
939
_types : set
950
940
_start : double
@@ -958,7 +948,6 @@ def __init__(self, name: str):
958
948
self ._states ["forgotten" ] = 0
959
949
self ._dependencies = set ()
960
950
self ._nbytes_total = 0
961
- self ._nbytes_in_memory = 0
962
951
self ._duration = 0
963
952
self ._types = set ()
964
953
self ._start = 0.0
@@ -985,10 +974,6 @@ def dependencies(self):
985
974
def nbytes_total (self ):
986
975
return self ._nbytes_total
987
976
988
- @property
989
- def nbytes_in_memory (self ):
990
- return self ._nbytes_in_memory
991
-
992
977
@property
993
978
def duration (self ):
994
979
return self ._duration
@@ -1559,7 +1544,6 @@ def set_nbytes(self, nbytes: Py_ssize_t):
1559
1544
if old_nbytes >= 0 :
1560
1545
diff -= old_nbytes
1561
1546
self ._group ._nbytes_total += diff
1562
- self ._group ._nbytes_in_memory += diff
1563
1547
ws : WorkerState
1564
1548
for ws in self ._who_has :
1565
1549
ws ._nbytes += diff
@@ -2646,7 +2630,6 @@ def transition_memory_released(self, key, safe: bint = False):
2646
2630
for ws in ts ._who_has :
2647
2631
del ws ._has_what [ts ]
2648
2632
ws ._nbytes -= ts_nbytes
2649
- ts ._group ._nbytes_in_memory -= ts_nbytes
2650
2633
worker_msgs [ws ._address ] = [worker_msg ]
2651
2634
2652
2635
ts ._who_has .clear ()
@@ -7336,8 +7319,6 @@ def _propagate_forgotten(
7336
7319
ts ._waiting_on .clear ()
7337
7320
7338
7321
ts_nbytes : Py_ssize_t = ts .get_nbytes ()
7339
- if ts ._who_has :
7340
- ts ._group ._nbytes_in_memory -= ts_nbytes
7341
7322
7342
7323
ws : WorkerState
7343
7324
for ws in ts ._who_has :
0 commit comments