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

Improve the signature of methods notifyTaskComplete() and ensureAppAndTaskCreated()

    XMLWordPrintableJSON

Details

    Description

      From the review https://github.com/apache/yunikorn-k8shim/pull/864

      Change notifyTaskComplete(string, string) to notifyTaskComplete(*Application, string). It removes a number of extra getApplication() calls we really do not need.
      Similar for ensureAppAndTaskCreated() which is only ever called from this function. Add a parameter to it to make it: ensureAppAndTaskCreated(*v1.Pod, *Application) and only execute application creation if app == nil

      Attachments

        Issue Links

          Activity

            People

              ryankert Hsien-Cheng(Ryan) Huang
              pbacsko Peter Bacsko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: