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

Commit

Permalink
Removed the extra delete statement from removeTaskFromLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindanr committed Nov 30, 2021
1 parent d13dd37 commit 9e27215
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ public void addTaskToLimit(Task task) {
null,
null,
3,
"Adding taskDefLimit",
"Adding to task_def_limit",
"addTaskToLimit"
);
} catch (Exception e) {
Expand All @@ -645,15 +645,13 @@ public void addTaskToLimit(Task task) {
public void removeTaskFromLimit(Task task) {
try {
recordCassandraDaoRequests("removeTaskFromLimit", task.getTaskType(), task.getWorkflowType());
session.execute(
deleteTaskDefLimitStatement.bind(task.getTaskDefName(), UUID.fromString(task.getTaskId())));
new RetryUtil<>().retryOnException(
() -> session.execute(
deleteTaskDefLimitStatement.bind(task.getTaskDefName(), UUID.fromString(task.getTaskId()))),
null,
null,
3,
"Deleting taskDefLimit",
"Deleting from task_def_limit",
"removeTaskFromLimit"
);
} catch (Exception e) {
Expand Down

0 comments on commit 9e27215

Please sign in to comment.