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

Move import to be dask-dist friendly #208

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Conversation

gerritholl
Copy link
Member

Make trollflow2 more multiprocessing / dask-distributed friendly. Move the launcher import in satpy_launcher.py within the main function, so that it only gets executed in the primary process. The call to Manager() in trollflow2.__init__.py was causing attempts to use trollflow2 with dask distributed to fail with a RuntimeError.

  • Closes #xxxx
  • Tests added
  • Tests passed
  • Passes flake8 trollflow2
  • Fully documented

I don't know how to add a unit test for this.

Make trollflow2 more multiprocessing / dask-distributed friendly.
Move the launcher import in satpy_launcher.py within the main
function, so that it only gets executed in the primary process.
The call to `Manager()` in `trollflow2.__init__.py` was causing
attempts to use trollflow2 with dask distributed to fail with a
RuntimeError.
@gerritholl gerritholl requested review from pnuu and mraspaud as code owners July 30, 2024 10:43
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.78%. Comparing base (c337b9e) to head (cb4cab3).
Report is 98 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #208   +/-   ##
=======================================
  Coverage   95.78%   95.78%           
=======================================
  Files          12       12           
  Lines        2989     2989           
=======================================
  Hits         2863     2863           
  Misses        126      126           
Flag Coverage Δ
unittests 95.78% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Member

@pnuu pnuu left a comment

Choose a reason for hiding this comment

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

LGTM

@pnuu pnuu enabled auto-merge September 10, 2024 07:30
@pnuu pnuu merged commit a984303 into pytroll:main Sep 10, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants