Signals not recieved/delayed during load testing

The flow involves getting the object from Main Workflow via query method , updating it and then signaling back to the main worklfow. I was told that query methods call needs to come from an activity in this question (What is the best way to access and modify object in Parent Workflow from Child Workflow - #4 by maxim). So as query and signal are part of the same flow, we have both in the same activity.

Yes, you are correct. The issue was in the signal logic. My Activiy is a spring components. I had declared the Main workflow stub as the class variable. So when Multiple workflows were executing at the same time, the stub was being modifed by all. So singals were being sent to wrong Main workflows.
In some cases, Some main workflows were getting 5 singals while some weren’t getting any.
After fixing the bug, Its working as expected.
Thanks

1 Like