File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ class WorkerState:
502
502
# Reference to scheduler task_groups
503
503
scheduler_ref : weakref .ref [SchedulerState ] | None
504
504
task_prefix_count : defaultdict [str , int ]
505
- _network_occ : float
505
+ _network_occ : int
506
506
_occupancy_cache : float | None
507
507
508
508
#: Keys that may need to be fetched to this worker, and the number of tasks that need them.
@@ -1715,7 +1715,7 @@ class SchedulerState:
1715
1715
transition_counter_max : int | Literal [False ]
1716
1716
1717
1717
_task_prefix_count_global : defaultdict [str , int ]
1718
- _network_occ_global : float
1718
+ _network_occ_global : int
1719
1719
######################
1720
1720
# Cached configuration
1721
1721
######################
@@ -1784,7 +1784,7 @@ def __init__(
1784
1784
self .validate = validate
1785
1785
self .workers = workers
1786
1786
self ._task_prefix_count_global = defaultdict (int )
1787
- self ._network_occ_global = 0.0
1787
+ self ._network_occ_global = 0
1788
1788
self .running = {
1789
1789
ws for ws in self .workers .values () if ws .status == Status .running
1790
1790
}
You can’t perform that action at this time.
0 commit comments