Skip to content

Handle checkpointed workflows that fail entirely#1883

Open
joshqsumner wants to merge 4 commits intov5.0from
handle-failed-workflow
Open

Handle checkpointed workflows that fail entirely#1883
joshqsumner wants to merge 4 commits intov5.0from
handle-failed-workflow

Conversation

@joshqsumner
Copy link
Contributor

Describe your changes
Updating parsers._read_checkpoint_data logic to only try to find checkpointing information if any jobs were completed successfully (ie, had args.results accessed). This fixes a bug that appeared when running a checkpointed parallel workflow that did not have any jobs complete successfully and made the re-run give a pandas key error since the already_run df was empty.

Also labels log directories more explicitly in case logs are being written to "." or somewhere else that could have non-logs stuff in it as well.

Type of update
This is a bug fix.

Associated issues
None

Additional context
None

For the reviewer
See this page for instructions on how to review the pull request.

  • PR functionality reviewed in a Jupyter Notebook
  • All tests pass
  • Test coverage remains 100%
  • Documentation tested
  • New documentation pages added to plantcv/mkdocs.yml
  • Changes to function input/output signatures added to updating.md
  • Code reviewed
  • PR approved

@deepsource-io
Copy link

deepsource-io bot commented Feb 25, 2026

DeepSource Code Review

We reviewed changes in 0c92ddd...497435f on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Python Feb 25, 2026 5:53p.m. Review ↗
Test coverage Feb 25, 2026 5:53p.m. Review ↗

Code Coverage Summary

Language Line Coverage (New Code) Line Coverage (Overall)
Aggregate
100%
[✓ above threshold]
100%
Python
100%
[✓ above threshold]
100%

➟ Additional coverage metrics may have been reported. See full coverage report ↗

@joshqsumner joshqsumner added this to the PlantCV v5.0 milestone Feb 25, 2026
@joshqsumner joshqsumner added bugfix Bug fixes work in progress Mark work in progress merge in order Set of PRs that need to be merged sequentially labels Feb 25, 2026
@joshqsumner joshqsumner added ready to review and removed work in progress Mark work in progress labels Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Bug fixes merge in order Set of PRs that need to be merged sequentially ready to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant