You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/23 19:37:58 UTC

[GitHub] [pulsar] merlimat opened a new pull request, #15725: [Python] Use async C++ calls to check for Python signals

merlimat opened a new pull request, #15725:
URL: https://github.com/apache/pulsar/pull/15725

   Fix #6477
   
   ### Motivation
   
   Currently the Python wrapper is calling blocking methods in the C++ API. That means that the Python interpreter thread is stuck in the blocking call (even if other Python threads are allowed to run), but it will prevent the interpreter to process any OS signals.
   
   Instead, we should use C++ async methods and check periodically for Python signals, so that we can unblock the interpreter when needed.
   
   ### Modifications
   
   Added wrapper functions to handle the logic of checking for the future completion and for the Python signal handling.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] BewareMyPower merged pull request #15725: [Python] Use async C++ calls to check for Python signals

Posted by GitBox <gi...@apache.org>.
BewareMyPower merged PR #15725:
URL: https://github.com/apache/pulsar/pull/15725


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] github-actions[bot] commented on pull request #15725: [Python] Use async C++ calls to check for Python signals

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #15725:
URL: https://github.com/apache/pulsar/pull/15725#issuecomment-1135067111

   @merlimat:Thanks for your contribution. For this PR, do we need to update docs?
   (The [PR template contains info about doc](https://github.com/apache/pulsar/blob/master/.github/PULL_REQUEST_TEMPLATE.md#documentation), which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org