Replies: 1 comment
-
Looks like there's nothing asynchronous in the method |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to execute a group_send sequentially within a Django view. The synchronous function from the model that is being called from the view is:
When I enter into this findNewDevice function, it reaches the line with:
and it continues the execution without entering into the publish_ScanningStatus of the consumer.
after it finishes (5 seconds), it then enters the publish_ScanningStatus of the consumer only once. I thought that by including async_to_sync into a function, it converted it into sequential code, so it should execute the function instantaneously; obviously I understood wrongly so is there anything I could do to get a sequential execution of the code??
What I would need to have is send the message to the group (to the client) so that I can indicate it that the system is scanning for new devices...
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions