Open
Description
Describe the solution you'd like
Objects in Core-based SDKs cannot be used across forks. But they can be created post-fork no problem. As part of this issue we should:
- Confirm behavior with the Rails sample and fork-based server e.g. puma and make sure the sample still works with forking
- Document that Temporal objects cannot be used across a fork (i.e. created before, accessed after)
- Document that Temporal clients should not be used pre-fork since that by default creates a runtime (and possibly document how to provide an alternative runtime if a user must use a Temporal client on both sides of the fork)
- Consider eagerly validating that a runtime and/or client is only used on the process it was created on (and raise exception with clear message if it is used across fork)