Skip to content

Commit

Permalink
remove task lock finct
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Nov 21, 2024
1 parent a087360 commit 7fb2885
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,6 @@ class TaskBundleRepository @Inject() (
}

lockedTasks.foreach { task =>
try {
this.lockItem(user, task)
} catch {
case e: Exception =>
this.logger.warn(e.getMessage)
}
taskRepository.cacheManager.cache.remove(task.id)
}
}
Expand Down Expand Up @@ -258,11 +252,6 @@ class TaskBundleRepository @Inject() (
)
.executeUpdate()

try {
this.unlockItem(user, task)
} catch {
case e: Exception => this.logger.warn(e.getMessage)
}
taskRepository.cacheManager.cache.remove(task.id)
case None => // do nothing
}
Expand Down Expand Up @@ -310,11 +299,6 @@ class TaskBundleRepository @Inject() (
"status" -> STATUS_CREATED
)
.executeUpdate()
try {
this.unlockItem(user, task)
} catch {
case e: Exception => this.logger.warn(e.getMessage)
}
}
taskRepository.cacheManager.cache.remove(task.id)
}
Expand Down

0 comments on commit 7fb2885

Please sign in to comment.