MCPcopy Index your code
hub / github.com/coder/coder / Priority

Method Priority

coderd/x/chatd/chatdebug/types.go:50–63  ·  view source on GitHub ↗

Priority returns a numeric ordering used to prevent stale callbacks from regressing a step's status. Higher values win over lower ones.

()

Source from the content-addressed store, hash-verified

48// Priority returns a numeric ordering used to prevent stale callbacks
49// from regressing a step's status. Higher values win over lower ones.
50func (s Status) Priority() int {
51 switch s {
52 case StatusInProgress:
53 return 0
54 case StatusInterrupted:
55 return 1
56 case StatusError:
57 return 2
58 case StatusCompleted:
59 return 3
60 default:
61 return 0
62 }
63}
64
65// AllStatuses contains every Status value. Update this when
66// adding new constants above.

Callers 2

IsTerminalMethod · 0.95
finishMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected