reanahub / reana-ui

REANA UI frontend
http://reana-ui.rtfd.io
MIT License
4 stars 33 forks source link

wf-details: always fill progress bar for finished workflows #348

Closed giuseppe-steduto closed 11 months ago

giuseppe-steduto commented 12 months ago

Changes the workflow progress bar to always show 100% for workflows that are in status finished, so that even when some steps are restored from cache, the progress bar stays consistent with the status of the workflow.

Closes reanahub/reana-workflow-engine-snakemake#62.

How to test cached workflows:

  1. Run the roofit snakemake demo with reana-client run -w r-snake -f ./reana-snakemake.yaml
  2. Restart the workflow in the same workspace, so that snakemake restores it completely from the cache: reana-client restart r-snake. Verify that the progress bar is at 100% with 0/0 steps (as shown locally by Snakemake)
  3. Edit the code/fitdata.C file (e.g. change a comment) and upload it to the same workspace: reana-client upload -w r-snake code/fitdata.C
  4. Restart the workflow in the same workspace, and this time snakemake will restore only the first step from the cache. Verify that the progress bar is at 100%.