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

438 check workers available causes execution to hang #440

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

tensionhead
Copy link
Contributor

@tensionhead tensionhead commented Feb 13, 2023

Changes Summary

  • branch off if acme is around earlier, and let it handle all parallel issues
  • improved own dask interface: wait only for a single worker

Reviewer Checklist

  • Are testing routines present?
  • Do objects in the global package namespace perform proper parsing of their input?
  • Are all docstrings complete and accurate?
  • Is the CHANGELOG.md up to date?

- if acme is around, basically just set parallel=True
- if not, wait for only a fraction of the workers before starting the computations

Changes to be committed:
	modified:   ../syncopy/shared/dask_helpers.py
	modified:   ../syncopy/shared/kwarg_decorators.py
@tensionhead tensionhead linked an issue Feb 13, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Base: 68.02% // Head: 68.17% // Increases project coverage by +0.15% 🎉

Coverage data is based on head (b44ddcb) compared to base (7546f51).
Patch coverage: 53.84% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #440      +/-   ##
==========================================
+ Coverage   68.02%   68.17%   +0.15%     
==========================================
  Files          81       81              
  Lines        9833     9845      +12     
  Branches     2032     2034       +2     
==========================================
+ Hits         6689     6712      +23     
+ Misses       2607     2597      -10     
+ Partials      537      536       -1     
Impacted Files Coverage Δ
syncopy/shared/kwarg_decorators.py 82.44% <28.57%> (-2.88%) ⬇️
syncopy/shared/dask_helpers.py 81.81% <83.33%> (+16.81%) ⬆️
syncopy/specest/compRoutines.py 91.91% <0.00%> (+0.67%) ⬆️
syncopy/nwanalysis/wilson_sf.py 94.20% <0.00%> (+1.44%) ⬆️
syncopy/datatype/methods/show.py 61.66% <0.00%> (+3.33%) ⬆️
syncopy/specest/freqanalysis.py 69.09% <0.00%> (+3.63%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Changes to be committed:
	modified:   syncopy/shared/dask_helpers.py
	modified:   syncopy/shared/kwarg_decorators.py
@tensionhead tensionhead marked this pull request as ready for review February 21, 2023 16:27
@dfsp-spirit dfsp-spirit self-assigned this Feb 22, 2023
Copy link
Collaborator

@dfsp-spirit dfsp-spirit left a comment

Choose a reason for hiding this comment

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

Thanks for this work. As discussed, it seems that the way Dask works and with our independent trials, there really is no point in waiting for more workers to show up instead of simply starting to work right away.

Of course, we cannot add tests that will check this behavior on the Github CI.

@dfsp-spirit dfsp-spirit merged commit 60b8693 into dev Feb 22, 2023
@dfsp-spirit dfsp-spirit deleted the 438-check_workers_available-causes-execution-to-hang branch February 28, 2023 10:05
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.

check_workers_available causes execution to hang
2 participants