Skip to content

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Feb 9, 2023

For Custom Executors we should give the executors a chance to know the priority of the Job.

It would be weird to expose a TaskPriority on Job since not all Jobs have to be Tasks. So perhaps this conversion might do the job: UnownedJob.Priority -> TaskPriority?. Open to opinions before I polish this up completely.

Worth discussing is that .priority perhaps is not saying enough here? As we also have BasePriority for tasks 🤔 Might need some discussion what exactly to expose.

We also had an old radar about TaskPriority printing very ugly -- just as the raw value, so this addresses it while working in here with priorities.

Resolves: rdar://103052361 #62430

@ktoso ktoso requested review from rokhinip, rjmccall and DougGregor and removed request for rjmccall February 9, 2023 12:44
@ktoso ktoso force-pushed the wip-custom-executor-priority branch 2 times, most recently from 0ea50ce to 934b0dd Compare February 10, 2023 02:15
@ktoso
Copy link
Contributor Author

ktoso commented Feb 10, 2023

@swift-ci please smoke test

@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Feb 10, 2023
@ktoso
Copy link
Contributor Author

ktoso commented Feb 27, 2023

@swift-ci please smoke test

@ktoso ktoso force-pushed the wip-custom-executor-priority branch 5 times, most recently from 6c17bb4 to e5e329d Compare February 28, 2023 07:15
@ktoso ktoso force-pushed the wip-custom-executor-priority branch from e5e329d to a2783b2 Compare February 28, 2023 07:17
@ktoso
Copy link
Contributor Author

ktoso commented Feb 28, 2023

@swift-ci please smoke test and merge

@ktoso
Copy link
Contributor Author

ktoso commented Feb 28, 2023

@swift-ci please smoke test and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants