Fix register search attributes when starting server
What was changed
Fix register search attributes when starting server
Why?
Currently, search attributes are registered after the server is ready, which can cause race condition with other processes waiting for the server to become ready too. This PR fixes this by registering the search attributes together with the namespaces.
Address https://github.com/temporalio/temporal/issues/6195
Checklist
-
Closes
-
How was this tested:
- Any docs updates needed?
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
LGTM, but not marking this approved until on tagged server. There seem to be other tests the latest server is breaking.