Skip to content

Commit 80b46a6

Browse files
committed
chore(scheduler): remove dup code in resolve_state
1 parent 92e440a commit 80b46a6

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

rootfs/scheduler/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,6 @@ def _set_environment(self, data, **kwargs):
565565
data["resources"]["limits"]["cpu"] = cpu
566566

567567
def resolve_state(self, pod):
568-
if pod is None:
569-
return JobState.destroyed
570-
571568
# See "Pod Phase" at http://kubernetes.io/v1.1/docs/user-guide/pod-states.html
572569
if pod is None:
573570
return JobState.destroyed

0 commit comments

Comments
 (0)