File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
python/ray/data/_internal/execution Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ def min_scheduling_resources(
510510 For regular tasks, this is the resources required to schedule a task. For actor
511511 tasks, this is the resources required to schedule an actor.
512512 """
513- return ExecutionResources . zero ()
513+ return self . incremental_resource_usage ()
514514
515515 def progress_str (self ) -> str :
516516 """Return any extra status to be displayed in the operator progress bar.
Original file line number Diff line number Diff line change @@ -1047,6 +1047,9 @@ def incremental_resource_usage(self) -> ExecutionResources:
10471047 gpu = 0 ,
10481048 )
10491049
1050+ def min_scheduling_resources (self ) -> ExecutionResources :
1051+ return self .incremental_resource_usage ()
1052+
10501053 def has_completed (self ) -> bool :
10511054 # TODO separate marking as completed from the check
10521055 return self ._is_finalized () and super ().has_completed ()
You can’t perform that action at this time.
0 commit comments