Skip to content

Fix the hanging issue in merge_piecewise_dataset#236

Open
manishvenu wants to merge 5 commits into
mainfrom
glorys_mispelling
Open

Fix the hanging issue in merge_piecewise_dataset#236
manishvenu wants to merge 5 commits into
mainfrom
glorys_mispelling

Conversation

@manishvenu

@manishvenu manishvenu commented Jun 9, 2026

Copy link
Copy Markdown
Member

Try fixing merge_piecewise threading issue

@manishvenu manishvenu requested a review from alperaltuntas June 9, 2026 17:16
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

📄 Preview your docs here:
👉 https://CROCODILE-CESM.github.io/CrocoDash/pr-236/index.html

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

concat_dim="time",
coords="minimal",
parallel=False,
lock=threading.Lock(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you describe why this lock is needed. Also, have you checked if this work with dask? A test or two would be nice.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Claude suggested, but basically sometimes the open_mfdataset hangs (it's hard to reproduce why) so know I added a couple args Claude suggested to make hanging less likely. It's pretty clear it's a threading thing, so hopeful this Lock (which means only worker can read at a time) will stop those hanging issues. I've also added a test that on ocassion hangs in a similar places when we don't have this change.

@manishvenu manishvenu changed the title Spelling Mistake (GLORYS) Fix the hanging issue in merge_piecewise_dataset Jun 15, 2026
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