# Signals not recieved/delayed during load testing

**URL:** <https://community.temporal.io/t/signals-not-recieved-delayed-during-load-testing/3108>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [October 6, 2021, 9:04am UTC](https://community.temporal.io/t/signals-not-recieved-delayed-during-load-testing/3108 "2021-10-06T09:04:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Vikas\_NS](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/vikas_ns/32/1210_2.png) [@Vikas\_NS](https://community.temporal.io/u/Vikas_NS)\
**Post date:** [October 12, 2021, 11:36am UTC](https://community.temporal.io/t/signals-not-recieved-delayed-during-load-testing/3108/3 "2021-10-12T11:36:07Z")

</div>

> [@maxim](#):
>
> Why via activity and not from the workflow directly?

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](https://community.temporal.io/t/what-is-the-best-way-to-access-and-modify-object-in-parent-workflow-from-child-workflow/2857/4)). So as query and signal are part of the same flow, we have both in the same activity.

> [@maxim](#):
>
> Temporal is a fully consistent system. It is not possible for a child to send a signal to a parent and parent receive the child completion before that signal. My guess is that the signal handling logic in your workflow is not correct.

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

---

_[View the full topic](https://community.temporal.io/t/signals-not-recieved-delayed-during-load-testing/3108)._
