class_docstr: The execution state of a workflow. This dataclass helps with observation
  and debugging.
class_docstr_tok: ["The","execution","state","of","a","workflow",".","This","dataclass","helps","with","observation","and","debugging","."]
docstr: Pop one task to run from the frontier queue.
docstr_tok: ["Pop","one","task","to","run","from","the","frontier","queue","."]
code: def pop_frontier_to_run(self) -> Optional[TaskID]:
      """Pop one task to run from the frontier queue."""
      try:
          t = self.frontier_to_run.popleft()
          self.frontier_to_run_set.remove(t)
          return t
      except IndexError:
          return None
  
imports: import asyncio
  from collections import deque, defaultdict
  import dataclasses
  from dataclasses import field
  import logging
  from typing import List, Dict, Optional, Set, Deque, Callable
  import ray
  from ray.workflow.common import TaskID, WorkflowRef, WorkflowTaskRuntimeOptions
  from ray.workflow.workflow_context import WorkflowTaskContext
label_desc: Use image node_id 2 for calling the WorkflowExecutionState obj's underlying member method code with example usage: obj.pop_frontier_to_run() and returns: t, None