Feature #2939
closedWorkbench button to re-run a past job.
Description
This requires adding to ArvadosBase a way to propagate parameters (other than attributes of the new model) to the "create" API call. Perhaps like f8d20973
Updated by Radhika Chippada over 10 years ago
Review comments:
1. Can we use the label "Re-run job using script version:" instead of "Re-run job using version:"?
2. Instead of "Same <uuid>", how about "Same as previous run" or something that conveys the meaning, "same version used for previous run of the job"?
3. Instead of "Latest (repo_name/version), how about simple "Latest version" ?
4. If the version used to run the job before is still the latest version (basically, only one version of the script), do we still want to show both buttons?
5. When I loaded the page the first time, I saw both "Same as" and "Latest" buttons. I, luckily or unluckily, clicked on the "Latest" button first. And I kept seeing the error message "supplied_script_version" does not exist. The error went away when I used the "Same as" button to rerun the job once.
6. When I rerun the jobs using either one of the rerun buttons, the page never refreshes.
7. Migration script: should we be setting the "supplied_script_version" during the migration? Is this why I saw error in 5? Or, may be we just need to handle the error when it is null.
8. jobs > _show_status.html.erb - line 11 and 24
{class: 'btn btn-primary', id: "run-pipeline-button"}
Should it use button id "run-job-button" ?
9. jobs > _show_status.html.erb - line 28
<table class="table pipeline-components-table">
Should it use table name "job-components-table" ?
Updated by Peter Amstutz over 10 years ago
Changes are in branch 2882-job-process-stats per our conversation
- Inserted word "script"
- Changed text to "Same as this run"
- It's sort of awkward to resolve a branch or tag to a commit from workbench, but now it will at least check if script_version and supplied_script_version are the same and hide the second button.
- Fixed so that it does not show the second button when "supplied_script_version" is null or empty
- Fixed, adds a "Cancel" button when the job is actually running.
- I'm going to address refreshing in another branch.
- See above. We could copy script_version into supplied_script_version as part of the migration, otherwise that information isn't available (which is why I had to add a new column)
- Fixed button id names
- That's a style, I didn't want to rename the style, so I left it.