Retrying workflow errors
When a workflow has entered "Error" status due to an unhandled error, you can issue a Retry command to tell K2 to retry the failed instances of the workflow from the point at which it failed.
- From the Workflow Instances node, or from an Error profile, locate the workflow instance(s) in Error status that you wish to retry.
- Find the Workflow Instance you want to view and read the Description of the error. The description provides information on the error and may guide you to an underlying problem that needs to be addressed before you attempt to retry the workflow.
- To view the Full Details of the error, select the error and click Show Details.
- If necessary, investigate and resolve the underlying cause of the error.
- To Retry one or more instances, use shift-click to select multiple instances. The Retry button becomes available, click the button to issue the retry command.When selecting multiple instances to Retry, select instances in batches of at most 10 instances at a time, and then issuing the Retry command. This will help to reduce the load on the K2 sever when processing the Retry command for multiple instances at the same time, and can help to mitigate subsequent issues that may arise when multiple instances are retrying the same event, for example overloading a target system with multiple requests.
- The Error Logs view will refresh. If the error was resolved by the Retry command, the Workflow Instance will be removed from the list. Some errors may not clear immediately, and because of the way K2 works, if you issue a Retry command it is possible that the workflow could go into Error status again after a few seconds once K2 has processed the failed code. When you Retry a failed workflow, wait a few seconds and then use the Refresh button to refresh the list of failed workflows, just to verify that the workflow error was indeed resolved by the Retry command.
- To select multiple errors to retry at the same time, hold down the Shift key, click on the errors you want to retry, and then click the Retry button.
- You can only view the details of a single error when using the Show Details option at a time.
- The Errors list displays twenty errors on each page. Use the paging arrows to navigate to other pages if necessary.
- By default, errors are ordered by ID in descending order. The latest errors display at the top of the list. You can also sort the errors by clicking on the column headers.