Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 7.37 KB

File metadata and controls

38 lines (33 loc) · 7.37 KB

graph_allocator_liveness_pass

Source: emel/graph/allocator/liveness_pass/sm.hpp

Mermaid

stateDiagram-v2
  direction TB
  [*] --> deciding
  deciding --> allocate_failed : completion_allocate_graph_plan_ [phase_prefailed_] / mark_failed_prefailed_
  deciding --> allocated : completion_allocate_graph_plan_ [phase_done_] / mark_done_
  deciding --> allocate_failed : completion_allocate_graph_plan_ [phase_invalid_request_] / mark_failed_invalid_request_
  deciding --> allocate_failed : completion_allocate_graph_plan_ [phase_capacity_exceeded_] / mark_failed_capacity_
  deciding --> allocate_failed : completion_allocate_graph_plan_ [always] / mark_failed_internal_
  allocated --> terminate : [always] / none
  allocate_failed --> terminate : [always] / none
  deciding --> unexpected_event : _ [always] / on_unexpected_
  allocated --> unexpected_event : _ [always] / on_unexpected_
  allocate_failed --> unexpected_event : _ [always] / on_unexpected_
  unexpected_event --> unexpected_event : _ [always] / on_unexpected_
Loading

Transitions

Source Event Guard Action Target
deciding completion<allocate_graph_plan> phase_prefailed> mark_failed_prefailed> allocate_failed
deciding completion<allocate_graph_plan> phase_done> mark_done> allocated
deciding completion<allocate_graph_plan> phase_invalid_request> mark_failed_invalid_request> allocate_failed
deciding completion<allocate_graph_plan> phase_capacity_exceeded> mark_failed_capacity> allocate_failed
deciding completion<allocate_graph_plan> always mark_failed_internal> allocate_failed
allocated - always none terminate
allocate_failed - always none terminate
deciding _ always on_unexpected> unexpected_event
allocated _ always on_unexpected> unexpected_event
allocate_failed _ always on_unexpected> unexpected_event
unexpected_event _ always on_unexpected> unexpected_event