Files
tasks/service/matching/loadcause_string_gen.go
David ReissandGitHub c41aa3cce3 Add load/unload cause to matching lifecycle logs (#6015)
## What changed?
Add a "cause" to the log lines for loading/unloading physical task
queues, based on which trigger caused the load/unload event.

## Why?
Help with debugging situations around polling and task queues.

## How did you test it?
verified manually

## Potential risks
it's just logs
2024-05-30 21:45:45 +00:00

32 lines
979 B
Go

// Code generated by "stringer -type loadCause -trimprefix loadCause -output loadcause_string_gen.go"; DO NOT EDIT.
package matching
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[loadCauseUnspecified-0]
_ = x[loadCauseTask-1]
_ = x[loadCauseQuery-2]
_ = x[loadCauseDescribe-3]
_ = x[loadCauseUserData-4]
_ = x[loadCauseNexusTask-5]
_ = x[loadCausePoll-6]
_ = x[loadCauseOtherRead-7]
_ = x[loadCauseOtherWrite-8]
}
const _loadCause_name = "UnspecifiedTaskQueryDescribeUserDataNexusTaskPollOtherReadOtherWrite"
var _loadCause_index = [...]uint8{0, 11, 15, 20, 28, 36, 45, 49, 58, 68}
func (i loadCause) String() string {
if i < 0 || i >= loadCause(len(_loadCause_index)-1) {
return "loadCause(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _loadCause_name[_loadCause_index[i]:_loadCause_index[i+1]]
}