original_docstring: Submit an ArgoJob to the cluster
  
      Args:
          job: the argo job to run
          labels: labels to apply to the k8s metadata of the argo job.
          other_parameters: Other common parameters to pass to the workflow an
              addition to ``job.parameters``
      
docstring: Submit an ArgoJob to the cluster
docstring_tokens: Submit an ArgoJob to the cluster
code: def submit(
      job: ArgoJob,
      labels: Mapping[str, str],
      other_parameters: Optional[Mapping[str, str]] = None,
  ):
      """Submit an ArgoJob to the cluster
  
      Args:
          job: the argo job to run
          labels: labels to apply to the k8s metadata of the argo job.
          other_parameters: Other common parameters to pass to the workflow an
              addition to ``job.parameters``
      """
      other_parameters = other_parameters or {}
      args = (
          [
              "argo",
              "submit",
              WORKFLOW_FILE.absolute().as_posix(),
              "--entrypoint",
              job.entrypoint,
              "--name",
              job.name,
          ]
          + _argo_parameters(dict(**job.parameters, **other_parameters))
          + _label_args(labels)
      )
      subprocess.check_call(args, stdout=subprocess.DEVNULL)
code_tokens: def submit ( job : ArgoJob , labels : Mapping [ str , str ] , other_parameters : Optional [ Mapping [ str , str ] ] = None , ) : other_parameters = other_parameters or { } args = ( [ "argo" , "submit" , WORKFLOW_FILE . absolute ( ) . as_posix ( ) , "--entrypoint" , job . entrypoint , "--name" , job . name , ] + _argo_parameters ( dict ( ** job . parameters , ** other_parameters ) ) + _label_args ( labels ) ) subprocess . check_call ( args , stdout = subprocess . DEVNULL )
short_docstring: Submit an ArgoJob to the cluster
short_docstring_tokens: Submit an ArgoJob to the cluster
comment: """Submit an ArgoJob to the cluster
  
      Args:
          job: the argo job to run
          labels: labels to apply to the k8s metadata of the argo job.
          other_parameters: Other common parameters to pass to the workflow an
              addition to ``job.parameters``
      """