Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Geert Zondervan committed Dec 13, 2023
1 parent da20a87 commit 15e9586
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,7 @@ class BatchJobChunkExecutionQueue(
) =
ExecutionQueueItem(id, batchJob.id, executeAfter?.time, jobCharacter ?: batchJob.jobCharacter)

private fun BatchJobChunkExecutionDto.toItem(
// Yes. jobCharacter is part of the batchJob entity.
// However, we don't want to fetch it here, because it would be a waste of resources.
// So we can provide the jobCharacter here.
providedJobCharacter: JobCharacter? = null
) =
private fun BatchJobChunkExecutionDto.toItem(providedJobCharacter: JobCharacter? = null) =
ExecutionQueueItem(id, batchJobId, executeAfter?.time, providedJobCharacter ?: jobCharacter)

val size get() = queue.size
Expand Down

0 comments on commit 15e9586

Please sign in to comment.