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
This will simulate permission denied upstream. Then run it, e.g. go run ./grpc-proxy/proxy-server and it'll run a proxy at 127.0.0.1:8081 that proxies to 127.0.0.1:7233 by default. Then run the Python script given in that issue pointing to this proxy:
After about a minute or so, the worker will fatally error due to too many permission denials. But the worker process gets to await finalize_shutdown and hangs. Feel free to add logs inside .venv/Lib/site-packages/temporalio/worker/_worker.py's run call to see how far it gets.
The text was updated successfully, but these errors were encountered:
It looks like there is a race condition or deadlock. Sometimes when I run, I get RuntimeError: Workflow worker failed and the test app ends. Other times, it hangs on worker.finalize_shutdown().await; in worker.rs finalize_shutdown
Describe the bug
Originally reported at temporalio/sdk-python#459.
To replicate, first run a local Temporal server, then alter https://github.com/temporalio/samples-go/blob/main/grpc-proxy/proxy-server/main.go to change the gRPC dialing to:
This will simulate permission denied upstream. Then run it, e.g.
go run ./grpc-proxy/proxy-server
and it'll run a proxy at127.0.0.1:8081
that proxies to127.0.0.1:7233
by default. Then run the Python script given in that issue pointing to this proxy:After about a minute or so, the worker will fatally error due to too many permission denials. But the worker process gets to await finalize_shutdown and hangs. Feel free to add logs inside
.venv/Lib/site-packages/temporalio/worker/_worker.py
'srun
call to see how far it gets.The text was updated successfully, but these errors were encountered: