Skip to content

Merge Release v2.56.0 to Main #996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ HttpResponse httpCall(Input input, Task task, Workflow workflow, WorkflowExecuto
response.headers = cr.getHeaders();
return response;
} catch (UniformInterfaceException ex) {
logger.error(ex.getMessage(), ex);
logger.error("HTTP task failed for workflowId{}, taskId {}, taskRefname {}, url {}, errorMessage {}", workflow.getWorkflowId(), task.getTaskId(), task.getReferenceTaskName(), input.getUri(), ex.getMessage());
ClientResponse cr = ex.getResponse();
logger.error("Status Code: {}", cr.getStatus());
if (cr.getStatus() > 199 && cr.getStatus() < 300) {
Expand All @@ -204,11 +204,10 @@ HttpResponse httpCall(Input input, Task task, Workflow workflow, WorkflowExecuto
return response;
} else {
String reason = cr.getEntity(String.class);
logger.error(reason, ex);
throw new Exception(reason);
}
} catch (Exception ex) {
logger.error(ex.getMessage(), ex);
logger.error("HTTP task failed for workflowId{}, taskId {}, taskRefname {}, url {}, errorMessage {}", workflow.getWorkflowId(), task.getTaskId(), task.getReferenceTaskName(), input.getUri(), ex.getMessage());
response.body = null;
response.headers = null;
response.statusCode = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ public void sweep(List<String> workflowIds, WorkflowExecutor executor) throws Ex

Future<?> future = es.submit(() -> {
NDC.push("sweep-" + UUID.randomUUID().toString());
logger.debug("Calling decider from sweeper for workflow {}", workflowId);
if (logger.isDebugEnabled()) {
logger.debug("Calling decider from sweeper for workflow {}", workflowId);
}
try {

WorkflowContext ctx = new WorkflowContext(config.getAppId());
Expand Down