Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-36173

[CORE] Support getting CPU number in TaskContext

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.2
    • 3.3.0
    • Spark Core
    • None

    Description

      In stage-level resource scheduling, the allocated 3rd party resources can be obtained in TaskContext using resources() interface, however there is no API to get how many cpus are allocated for the task. Will add a cpus() interface to TaskContext in addition to resources().

      Attachments

        Activity

          People

            xiaochang-wu Xiaochang Wu
            xiaochang-wu Xiaochang Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: