class_docstr: Service for executing delegated operations.
docstr: Sets the given delegated operation to failed state.
  
  Args:
      doc_id: the ID of the delegated operation
      result (None): the
          :class:`fiftyone.operators.executor.ExecutionResult` of the
          operation
      progress (None): an optional
          :class:`fiftyone.operators.executor.ExecutionProgress` of the
          operation
      run_link (None): an optional link to orchestrator-specific
          information about the operation
  
  Returns:
      a :class:`fiftyone.factory.repos.DelegatedOperationDocument`
docstr_tok: ["Sets","the","given","delegated","operation","to","failed","state",".","Args",":","doc_id",":","the","ID","of","the","delegated","operation","result","(","None",")",":","the",":","class",":","`","fiftyone.operators.executor.ExecutionResult","`","of","the","operation","progress","(","None",")",":","an","optional",":","class",":","`","fiftyone.operators.executor.ExecutionProgress","`","of","the","operation","run_link","(","None",")",":","an","optional","link","to","orchestrator-specific","information","about","the","operation","Returns",":","a",":","class",":","`","fiftyone.factory.repos.DelegatedOperationDocument","`"]
code: def set_failed(
      self,
      doc_id,
      result=None,
      progress=None,
      run_link=None,
  ):
      """Sets the given delegated operation to failed state.
  
      Args:
          doc_id: the ID of the delegated operation
          result (None): the
              :class:`fiftyone.operators.executor.ExecutionResult` of the
              operation
          progress (None): an optional
              :class:`fiftyone.operators.executor.ExecutionProgress` of the
              operation
          run_link (None): an optional link to orchestrator-specific
              information about the operation
  
      Returns:
          a :class:`fiftyone.factory.repos.DelegatedOperationDocument`
      """
      return self._repo.update_run_state(
          _id=doc_id,
          run_state=ExecutionRunState.FAILED,
          result=result,
          run_link=run_link,
          progress=progress,
      )
  
imports: import asyncio
  import logging
  import traceback
  from fiftyone.factory.repo_factory import RepositoryFactory
  from fiftyone.factory import DelegatedOperationPagingParams
  from fiftyone.operators.executor import prepare_operator_executor, do_execute_operator, ExecutionResult, ExecutionRunState
label_desc: Use image node_id 6 for calling the DelegatedOperationService obj's underlying member method code with example usage: obj.set_failed(doc_id, result, progress, run_link) and returns: self