Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Periodically check python signals ('CTRL-C' handling) #20826

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

ritchie46
Copy link
Member

No description provided.

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Jan 21, 2025
Copy link
Contributor

The uncompressed lib size after this PR is 39.4269 MB.

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.69%. Comparing base (91f1551) to head (e7ba34b).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #20826   +/-   ##
=======================================
  Coverage   79.69%   79.69%           
=======================================
  Files        1568     1569    +1     
  Lines      222973   223010   +37     
  Branches     2544     2545    +1     
=======================================
+ Hits       177693   177735   +42     
+ Misses      44696    44691    -5     
  Partials      584      584           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

The uncompressed lib size after this PR is 39.4339 MB.

@ritchie46 ritchie46 merged commit f826c32 into main Jan 21, 2025
22 checks passed
@ritchie46 ritchie46 deleted the check_signals branch January 21, 2025 15:30
}

pub fn check_signals() -> PolarsResult<()> {
let f = unsafe { SIGNALS_FUNCTION.unwrap_or(default) };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use OnceLock here instead? I'm pretty sure this is unsound.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants