Closed antoniozlp closed 2 years ago
Fix race condition when a subscription is starting and _sub_routing_loop is running.
_sub_routing_loop
Avoid this type of error
Fixes # (issue)
Please delete options that are not relevant.
pipenv run pytest -x
test.valiot.app
Tested on worker valiot-template-jobs connected to test.valiot.app
Using worker.setPollingMode(PollingMode.SUBSCRIPTION) and queueType= QueueType.EVENT job
worker.setPollingMode(PollingMode.SUBSCRIPTION)
queueType= QueueType.EVENT
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Description
Fix race condition when a subscription is starting and
_sub_routing_loop
is running.Avoid this type of error
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
pipenv run pytest -x
connected totest.valiot.app
Tested on worker valiot-template-jobs connected to
test.valiot.app
Using
worker.setPollingMode(PollingMode.SUBSCRIPTION)
andqueueType= QueueType.EVENT
jobChecklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules