Open mikellxy opened 2 days ago
There's a hard coded 4 MB limit for a gRPC response. If the accumulated size of the schedule activity commands goes above that limit the RespondWorkflowTaskCompleted request will be rejected and it will manifest as a timeout.
This is a known issue without a good mitigation today. Please confirm this theory, there may be some logs emitted by the Go SDK. As a workaround, you can add a sleep after every 100 activities scheduled.
There's a feature request open for a possible fix to this issue: https://github.com/temporalio/features/issues/363
hi, I apologize for using an issue to seek help.
Expected Behavior
In my workflow worker, firstly I start a timer to wait for the biz data to be ready. Then 1,000 activies are submitted, i expected that all these activities can be scheduled and run asynchronously after the submission. Then I wait for the results of the 1,000 Future object like a wait group model.
This is a simplified version of my code:
the activity options as follow:
the workflow options:
the worker options:
Actual Behavior
It reports WorkflowTaskTimeOut, and none of the activities was scheduled. The timeline is as follow:
p.s. if i reduce the number of activities to 100, all the activities run successfully.
Steps to Reproduce the Problem
1. 1. 1.
Specifications