You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In CLI we foolishly used operator service to register search attributes immediately after start, but users just check whether port is available to see if started and therefore it may race against operator service.
What we'd like is the ability to set search attributes. Basically something like go.temporal.io/server/temporal.WithSearchAttributes that accepts a map[string]enums.IndexedValueType (or any other structure) and does not start the server until those are confirmed set with that value type. I think the best way is to register if attr name not there, do nothing if attr name there and the proper type, and fail startup if attr there but wrong type. It's possible this can be used for general server config too.
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
In CLI we foolishly used operator service to register search attributes immediately after start, but users just check whether port is available to see if started and therefore it may race against operator service.
What we'd like is the ability to set search attributes. Basically something like
go.temporal.io/server/temporal.WithSearchAttributes
that accepts amap[string]enums.IndexedValueType
(or any other structure) and does not start the server until those are confirmed set with that value type. I think the best way is to register if attr name not there, do nothing if attr name there and the proper type, and fail startup if attr there but wrong type. It's possible this can be used for general server config too.The text was updated successfully, but these errors were encountered: