You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/02/19 17:10:00 UTC

[jira] [Resolved] (YUNIKORN-2326) refactor `getAppsByState`, `getRejectedAppsByState`, and `getCompletedAppsByState`

     [ https://issues.apache.org/jira/browse/YUNIKORN-2326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chia-Ping Tsai resolved YUNIKORN-2326.
--------------------------------------
    Fix Version/s: 1.5.0
       Resolution: Fixed

[~priyansh] thanks for nice patch!

> refactor `getAppsByState`, `getRejectedAppsByState`, and `getCompletedAppsByState`
> ----------------------------------------------------------------------------------
>
>                 Key: YUNIKORN-2326
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2326
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Assignee: Priyansh Choudhary
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>
> `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]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org