In a sequence of long running tasks it is useful to be able to resume thefailed sequence exactly at the beginning of the failed task, after fixingtransient errors causing a failure. This scenario would be especially useful inworkflows because they are designed for long running and reliable tasksequences.A workaround exists but it is difficult and ugly to code for every activity.E.g. (after a failure Resume-Job repeats the failed task): Workflow WorkflowWithPossibleFailures { ... # wrap an activity by a retry-able loop for($go = 1; $go;) { try { #<activity that can fail> $go = 0 Checkpoint-Workflow } catch { Write-Warning -Message $_ Suspend-Workflow } } ... }Right now Resume-Job can be invoked on failed workflow jobs but apparentlynothing happens (an error would be less confusing, perhaps).If I miss something and the proposed ability to resume failed workflows existsor if there is a more elegant workaround please let me know.
Please wait...