Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2326

refactor `getAppsByState`, `getRejectedAppsByState`, and `getCompletedAppsByState`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.0
    • None

    Description

      `getAppsByState`, `getRejectedAppsByState`, and `getCompletedAppsByState` do the similar job that get apps according to specific state. Hence, it would be better to have a helper method and then these three methods can reuse the code.

       

      https://github.com/apache/yunikorn-core/blob/master/pkg/scheduler/partition.go#L1075

      https://github.com/apache/yunikorn-core/blob/master/pkg/scheduler/partition.go#L1088

      https://github.com/apache/yunikorn-core/blob/master/pkg/scheduler/partition.go#L1101

       

      Attachments

        Issue Links

          Activity

            People

              priyansh Priyansh Choudhary
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: