Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorebanala committed Sep 10, 2020
1 parent dea65cb commit 1d6c1a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public void sweep(List<String> workflowIds, WorkflowExecutor workflowExecutor, W
}

} catch (Exception e) {
queueDAO.setUnackTimeout(WorkflowExecutor.DECIDER_QUEUE, workflowId, config.getSweepFrequency() * 1000);
Monitors.error(className, "sweep");
logger.error("Error running sweep for " + workflowId, e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public String requeueSweep(@PathParam("workflowId") String workflowId) {
@ApiOperation("Verify and repair workflow consistency")
@Consumes({ MediaType.WILDCARD })
@Produces({ MediaType.TEXT_PLAIN })
public boolean verifyAndRepairWorkflowConsistency(@PathParam("workflowId") String workflowId) {
return adminService.verifyAndRepairWorkflowConsistency(workflowId);
public String verifyAndRepairWorkflowConsistency(@PathParam("workflowId") String workflowId) {
return String.valueOf(adminService.verifyAndRepairWorkflowConsistency(workflowId));
}

}

0 comments on commit 1d6c1a1

Please sign in to comment.