coinbase / coinbase/temporal-ruby

RuntimeError: grpc cannot be used before and after forking

Open
#211 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Ruby
Stars
287
Forks
113
Avg merge
6d 11h
Merged PRs (30d)
1

Description

I am using the following config in my deployed environments -
`Rails.application.configure do
config.cache_classes = true
config.eager_load = true
end
`
If I call Temporal.start_worflow with above configuration, I get -
`RuntimeError: grpc cannot be used before and after forking
from /bundle/ruby/2.6.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/lib/grpc/generic/client_stub.rb:493:in `create_call'`

However if both cache_classes and eager_load is set to false, it works.

Any suggestions on how I can resolve this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.