You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "shunping (via GitHub)" <gi...@apache.org> on 2025/04/26 02:14:53 UTC

[PR] Fix sigint handler for StopOnExitJobServer [beam]

shunping opened a new pull request, #34748:
URL: https://github.com/apache/beam/pull/34748

   The previously registered SIGINT handler had an incorrect signature according to the signal module documentation:
   https://docs.python.org/3/library/signal.html#signal.signal
   > The handler is called with two arguments: the signal number and the current stack frame (None or a frame object; for a description of frame objects,
   
   This PR updates the handler to the correct signature. It now gracefully stops the server and ensures the original handler is called for proper application exit.
   
   
   


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] Fix SIGINT handler for StopOnExitJobServer [beam]

Posted by "lostluck (via GitHub)" <gi...@apache.org>.
lostluck merged PR #34748:
URL: https://github.com/apache/beam/pull/34748


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] Fix SIGINT handler for StopOnExitJobServer [beam]

Posted by "shunping (via GitHub)" <gi...@apache.org>.
shunping commented on PR #34748:
URL: https://github.com/apache/beam/pull/34748#issuecomment-2832064992

   > Does this help with #33623 in combination with the Singleton experiment?
   
   Yes, there are multiple changes recently to address #33623. 
   - #34616: fixed the cached mechanism so that we won't try to overwrite a running prism binary if the binary is in cache
   - #34715: supported a remote filesystem path in `--prism_location`. Note that in this case by design, cache will be disabled, so a proper md5sum checking was implemented so that we won't overwrite a running prism binary if the remote file has the same md5 as the cached one.
   - #34623: the singleton experiment. If the case of than one pipelines running before the interpreter (or the kernel in colab) terminates, we will only start one prism server and run all pipelines with it. This is useful for batch pipelines where pipelines will run and finish by themselves.
   - #34748: This PR. It fixes a bug when we run a streaming pipeline and click the stop button in colab. 
   
   


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] Fix SIGINT handler for StopOnExitJobServer [beam]

Posted by "shunping (via GitHub)" <gi...@apache.org>.
shunping commented on PR #34748:
URL: https://github.com/apache/beam/pull/34748#issuecomment-2832050812

   Run Python_Runners PreCommit 3.9


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] Fix SIGINT handler for StopOnExitJobServer [beam]

Posted by "shunping (via GitHub)" <gi...@apache.org>.
shunping commented on PR #34748:
URL: https://github.com/apache/beam/pull/34748#issuecomment-2831784617

   Run Python_Dataframes PreCommit 3.11


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] Fix SIGINT handler for StopOnExitJobServer [beam]

Posted by "lostluck (via GitHub)" <gi...@apache.org>.
lostluck commented on PR #34748:
URL: https://github.com/apache/beam/pull/34748#issuecomment-2832126913

   Fantastic!


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] Fix SIGINT handler for StopOnExitJobServer [beam]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #34748:
URL: https://github.com/apache/beam/pull/34748#issuecomment-2831790606

   ## [Codecov](https://app.codecov.io/gh/apache/beam/pull/34748?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   Attention: Patch coverage is `50.00000%` with `3 lines` in your changes missing coverage. Please review.
   > Project coverage is 56.50%. Comparing base [(`8cd0a29`)](https://app.codecov.io/gh/apache/beam/commit/8cd0a2970d9f4e22faded31cb9a2ac639c611615?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`530fab6`)](https://app.codecov.io/gh/apache/beam/commit/530fab60826976cde091f269ae6c9e46b0766008?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 11 commits behind head on master.
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/beam/pull/34748?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...thon/apache\_beam/runners/portability/job\_server.py](https://app.codecov.io/gh/apache/beam/pull/34748?src=pr&el=tree&filepath=sdks%2Fpython%2Fapache_beam%2Frunners%2Fportability%2Fjob_server.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vcnVubmVycy9wb3J0YWJpbGl0eS9qb2Jfc2VydmVyLnB5) | 50.00% | [3 Missing :warning: ](https://app.codecov.io/gh/apache/beam/pull/34748?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #34748      +/-   ##
   ============================================
   + Coverage     56.48%   56.50%   +0.02%     
     Complexity     3289     3289              
   ============================================
     Files          1178     1180       +2     
     Lines        180978   181262     +284     
     Branches       3399     3399              
   ============================================
   + Hits         102220   102419     +199     
   - Misses        75499    75584      +85     
     Partials       3259     3259              
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/beam/pull/34748/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [python](https://app.codecov.io/gh/apache/beam/pull/34748/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `81.26% <50.00%> (-0.05%)` | :arrow_down: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/beam/pull/34748?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] Fix SIGINT handler for StopOnExitJobServer [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #34748:
URL: https://github.com/apache/beam/pull/34748#issuecomment-2831805623

   Assigning reviewers. If you would like to opt out of this review, comment `assign to next reviewer`:
   
   R: @claudevdm for label python.
   
   Available commands:
   - `stop reviewer notifications` - opt out of the automated review tooling
   - `remind me after tests pass` - tag the comment author after tests pass
   - `waiting on author` - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)
   
   The PR bot will only process comments in the main thread (not review comments).


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] Fix SIGINT handler for StopOnExitJobServer [beam]

Posted by "lostluck (via GitHub)" <gi...@apache.org>.
lostluck commented on PR #34748:
URL: https://github.com/apache/beam/pull/34748#issuecomment-2831803007

   Does this help with #33623 in combination with the Singleton experiment?


-- 
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: github-unsubscribe@beam.apache.org

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