Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
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
- depends upon
-
YUNIKORN-2319 cache.Task: reference to old pod object is kept after update
- Resolved
- links to