mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## 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
31 lines
997 B
Go
31 lines
997 B
Go
// Code generated by "stringer -type unloadCause -trimprefix unloadCause -output unloadcause_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[unloadCauseUnspecified-0]
|
|
_ = x[unloadCauseInitError-1]
|
|
_ = x[unloadCauseIdle-2]
|
|
_ = x[unloadCauseMembership-3]
|
|
_ = x[unloadCauseConflict-4]
|
|
_ = x[unloadCauseShuttingDown-5]
|
|
_ = x[unloadCauseForce-6]
|
|
_ = x[unloadCauseOtherError-7]
|
|
}
|
|
|
|
const _unloadCause_name = "UnspecifiedInitErrorIdleMembershipConflictShuttingDownForceOtherError"
|
|
|
|
var _unloadCause_index = [...]uint8{0, 11, 20, 24, 34, 42, 54, 59, 69}
|
|
|
|
func (i unloadCause) String() string {
|
|
if i < 0 || i >= unloadCause(len(_unloadCause_index)-1) {
|
|
return "unloadCause(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _unloadCause_name[_unloadCause_index[i]:_unloadCause_index[i+1]]
|
|
}
|