Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented May 25, 2024

Fix two issue:

  1. If a task’s priority got elevated, we would emit the Elevating priority log message repeatedly until the elevated priority is propagated to the underlying task via withTaskPriorityChangedHandler
  2. Explicitly set the priority of QueuedTask, which ensures that we create the detached resultTask inside of it with that priority. I’m not sure if this was an actual issue but seems like a good cleanup regardless.

Fix two issue:
1. If a task’s priority got elevated, we would emit the `Elevating priority` log message repeatedly until the elevated priority is propagated to the underlying task via `withTaskPriorityChangedHandler`
2. Explicitly set the priority of `QueuedTask`, which ensures that we create the detached `resultTask` inside of it with that priority. I’m not sure if this was an actual issue but seems like a good cleanup regardless.
@ahoppen ahoppen requested review from bnbarham and hamishknight May 25, 2024 18:30
@ahoppen ahoppen requested a review from benlangmuir as a code owner May 25, 2024 18:30
@ahoppen
Copy link
Member Author

ahoppen commented May 25, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit 85cdd90 into swiftlang:main May 28, 2024
@ahoppen ahoppen deleted the task-scheduler-improvements branch May 28, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants