-
Improvement
-
Resolution: Unresolved
-
Minor
Change onResume to throw Exception. (Would still be binary-compatible.) FlowExecutionList.ItemListenerImpl.onLoaded would then need to catch exceptions and call StepContext.onFailure. Like AbstractStepExecutionImpl, this would rely on transient fields holding the contextual object; the improvement would be that a failure in StepContext.get would stop anything else in onResume (such as the setupTimer methods in TimeoutStepExecution, SleepStep.Execution, or DurableTaskStep.Execution) from running.
- blocks
-
JENKINS-37486 NPE: Failed to abort at org.jenkinsci.plugins.durabletask.FileMonitoringTask$FileMonitoringController.stop(FileMonitoringTask.java:167)
-
- Resolved
-
- relates to
-
JENKINS-39134 com.google.inject.CreationException after resuming build in script {} or withMaven {}
-
- Closed
-
- links to
[JENKINS-40161] Allow StepExecution.onResume to throw Exception
Link |
New:
This issue relates to |
Link |
New:
This issue blocks |
Component/s | New: durable-task-plugin [ 18622 ] |
Description |
Original:
[Proposal|https://github.com/jenkinsci/workflow-basic-steps-plugin/pull/28#discussion_r90341038]: Change {{onResume}} to throw {{Exception}}. (Would still be binary-compatible.) {{FlowExecutionList.ItemListenerImpl.onLoaded}} would then need to catch exceptions and call {{StepContext.onFailure}}. Like {{AbstractStepExecutionImpl}}, this would rely on {{transient}} fields holding the contextual object; the improvement would be that a failure in {{StepContext.get}} would stop anything _else_ in {{onResume}} (such as {{TimeoutStepExecution.setupTimer}} or {{SleepStep.Execution.setupTimer}}) from running. |
New:
[Proposal|https://github.com/jenkinsci/workflow-basic-steps-plugin/pull/28#discussion_r90341038]: Change {{onResume}} to throw {{Exception}}. (Would still be binary-compatible.) {{FlowExecutionList.ItemListenerImpl.onLoaded}} would then need to catch exceptions and call {{StepContext.onFailure}}. Like {{AbstractStepExecutionImpl}}, this would rely on {{transient}} fields holding the contextual object; the improvement would be that a failure in {{StepContext.get}} would stop anything _else_ in {{onResume}} (such as the {{setupTimer}} methods in {{TimeoutStepExecution}}, {{SleepStep.Execution}}, or {{DurableTaskStep.Execution}}) from running. |
Remote Link | New: This issue links to "workflow-api-plugin #187 (Web Link)" [ 27289 ] |