Github user jiangxb1987 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21589#discussion_r202545679
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskScheduler.scala ---
    @@ -67,6 +67,10 @@ private[spark] trait TaskScheduler {
       // Get the default level of parallelism to use in the cluster, as a hint 
for sizing jobs.
       def defaultParallelism(): Int
     
    +  def numCores(): Int
    --- End diff --
    
    Please also add comment for these functions.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to