James Taylor wrote, On 07/24/2009 11:58 AM:
On Jul 24, 2009, at 1:13 AM, Assaf Gordon wrote:
This patch adds a 're-run' link (next to the 'save' link). The link is encoded in a way to trick the 'tool_runner' controller into displaying the tool-form with the parameters already initialized.
An alternative way with only very small changes from your code would be to add a "rerun" method to the tool_runner controller taking a dataset_id as an attribute.
New patch, does exactly as you suggested. Indeed, a much cleaner solution. conditional,grouping and repeat parameters still don't work, because I convert all the parameters into strings. Without converting into strings, dynamic selection parameters are 'parameters.basic.UnvalidatedValue' objects and cause an exception. This is obviously wrong, but I don't know what's the correct way. I've also added a 're-run' link to failed jobs, so they can be re-run easily. Comments are welcomed. gordon.