Skip to content
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

Deadline is removed after task processing, allowing follow-up database operations to succeed in any case. #152

Merged
merged 15 commits into from
Apr 6, 2022

Conversation

onukristo
Copy link
Contributor

@onukristo onukristo commented Apr 5, 2022

Context

Deadline is removed after task processing, allowing follow-up database operations to succeed in any case.

Checklist

@onukristo onukristo requested a review from a team as a code owner April 5, 2022 06:42
@@ -456,7 +456,6 @@ protected void processTask(ITaskHandler taskHandler, ITaskConcurrencyPolicy conc

TwContext currentContext = TwContext.current();
UnitOfWork unitOfWork = unitOfWorkManager.getUnitOfWork(currentContext);
unitOfWork.setDeadline(deadline);
Copy link
Contributor Author

@onukristo onukristo Apr 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix, rest is piggybacking some other stuff.

if (taskProcessed.isTrue()) {
break;
}
for (GlobalProcessingState.TypeTasks typeTasks : prioritySlot.getOrderedTypeTasks()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That ArrayList had been quite visible in Opsian.

@onukristo onukristo merged commit 1cd9fbf into master Apr 6, 2022
max-parallel: 100
matrix:
spring_boot_version:
- 2.6.5

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants