class_docstr: Information about a Lightly Worker run.
  
  Attributes:
      state:
          The state of the Lightly Worker run.
      message:
          The last message of the Lightly Worker run.
docstr: Checkes whether the Lightly Worker run ended successfully or failed.
  
  Returns:
      A boolean value indicating if the Lightly Worker run was successful.
      True if the run was successful.
  
  Raises:
      ValueError:
          If the Lightly Worker run is still in progress.
docstr_tok: ["Checkes","whether","the","Lightly","Worker","run","ended","successfully","or","failed",".","Returns",":","A","boolean","value","indicating","if","the","Lightly","Worker","run","was","successful",".","True","if","the","run","was","successful",".","Raises",":","ValueError",":","If","the","Lightly","Worker","run","is","still","in","progress","."]
code: def ended_successfully(self) -> bool:
      """Checkes whether the Lightly Worker run ended successfully or failed.
  
      Returns:
          A boolean value indicating if the Lightly Worker run was successful.
          True if the run was successful.
  
      Raises:
          ValueError:
              If the Lightly Worker run is still in progress.
      """
      if not self.in_end_state():
          raise ValueError("Lightly Worker run is still in progress.")
      return self.state == DockerRunState.COMPLETED
  
imports: import copy
  import dataclasses
  import difflib
  import json
  import time
  from functools import partial
  from typing import Any, Callable, Dict, Iterator, List, Optional, Type, TypeVar, Union
  from lightly.api import utils
  from lightly.openapi_generated.swagger_client.api_client import ApiClient
  from lightly.openapi_generated.swagger_client.models import CreateDockerWorkerRegistryEntryRequest, DockerRunData, DockerRunScheduledCreateRequest, DockerRunScheduledData, DockerRunScheduledPriority, DockerRunScheduledState, DockerRunState, DockerWorkerConfigV3, DockerWorkerConfigV3CreateRequest, DockerWorkerConfigV3Docker, DockerWorkerConfigV3Lightly, DockerWorkerRegistryEntryData, DockerWorkerType, SelectionConfigV3, SelectionConfigV3Entry, SelectionConfigV3EntryInput, SelectionConfigV3EntryStrategy, TagData
  from lightly.openapi_generated.swagger_client.rest import ApiException
label_desc: Use image node_id 2 for calling the ComputeWorkerRunInfo obj's underlying member method code with example usage: obj.ended_successfully() and returns: unknown