Skip to content

fix(dask): catch cleanup errors on cluster creation failures#676

Merged
tiborsimko merged 1 commit intoreanahub:masterfrom
tiborsimko:fix-dask-cleanup-error-propagation
Apr 13, 2026
Merged

fix(dask): catch cleanup errors on cluster creation failures#676
tiborsimko merged 1 commit intoreanahub:masterfrom
tiborsimko:fix-dask-cleanup-error-propagation

Conversation

@tiborsimko
Copy link
Copy Markdown
Member

When the creation of Dask Kubernetes resources fails, the cleanup call to delete_dask_cluster() could itself raise RuntimeError. (E.g. when CRDs are not installed.) The error then propagated beyond ApiException and surfaced as a 500 Internal Server Error, instead of providing a meaningful error message. This commit fixes the problem.

@tiborsimko tiborsimko self-assigned this Apr 13, 2026
tiborsimko added a commit to tiborsimko/reana-workflow-controller that referenced this pull request Apr 13, 2026
…b#676)

When the creation of Dask Kubernetes resources fails, the cleanup call
to delete_dask_cluster() could itself raise RuntimeError. (E.g. when
CRDs are not installed.) The error then propagated beyond ApiException
and surfaced as a 500 Internal Server Error, instead of providing a
meaningful error message. This commit fixes the problem.
@tiborsimko tiborsimko force-pushed the fix-dask-cleanup-error-propagation branch from 9d44622 to f577360 Compare April 13, 2026 10:05
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.74%. Comparing base (fb48ea3) to head (abfaad7).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #676      +/-   ##
==========================================
+ Coverage   73.55%   73.74%   +0.18%     
==========================================
  Files          17       17              
  Lines        2004     2007       +3     
==========================================
+ Hits         1474     1480       +6     
+ Misses        530      527       -3     
Files with missing lines Coverage Δ
reana_workflow_controller/dask.py 57.89% <100.00%> (+1.74%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tiborsimko tiborsimko moved this to In review in 0.95.0 Apr 13, 2026
…b#676)

When the creation of Dask Kubernetes resources fails, the cleanup call
to delete_dask_cluster() could itself raise RuntimeError. (E.g. when
CRDs are not installed.) The error then propagated beyond ApiException
and surfaced as a 500 Internal Server Error, instead of providing a
meaningful error message. This commit fixes the problem.
@tiborsimko tiborsimko force-pushed the fix-dask-cleanup-error-propagation branch from f577360 to abfaad7 Compare April 13, 2026 12:52
@tiborsimko tiborsimko merged commit abfaad7 into reanahub:master Apr 13, 2026
18 of 19 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in 0.95.0 Apr 13, 2026
@tiborsimko tiborsimko deleted the fix-dask-cleanup-error-propagation branch April 13, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants