Skip to content

Changed WorkflowConcurrency Worker task priority to high #306

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

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

mjohnson12
Copy link
Collaborator

@mjohnson12 mjohnson12 commented Oct 3, 2024

Checklist

  • Unit Tests
  • UI Tests
  • Snapshot Tests (iOS only)
  • I have made corresponding changes to the documentation

@mjohnson12 mjohnson12 requested a review from a team as a code owner October 3, 2024 15:38
@mjohnson12 mjohnson12 force-pushed the markj/concurrency_worker_task_priority branch from 322ea4c to 0ce2654 Compare October 7, 2024 14:18
@mjohnson12 mjohnson12 changed the title Added task priority to WorkflowConcurrency Worker Changed WorkflowConcurrency Worker task priority to high Oct 7, 2024
@mjohnson12 mjohnson12 requested review from nabs-m and jamieQ October 7, 2024 15:22
Copy link
Contributor

@nabs-m nabs-m left a comment

Choose a reason for hiding this comment

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

I think it's fair to assume UI related tasks are always gonna be of high priority

@@ -63,7 +63,7 @@ struct WorkerWorkflow<WorkerType: Worker>: Workflow {
let sink = context.makeOutputSink()
context.runSideEffect(key: state) { lifetime in
let send: @MainActor(Output) -> Void = sink.send
let task = Task {
let task = Task(priority: .high) {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add a note in one of the doc comments about this behavior

@mjohnson12 mjohnson12 force-pushed the markj/concurrency_worker_task_priority branch from 0ce2654 to 7a195b3 Compare October 7, 2024 16:10
@mjohnson12 mjohnson12 merged commit dbc466b into main Oct 7, 2024
6 checks passed
@mjohnson12 mjohnson12 deleted the markj/concurrency_worker_task_priority branch October 7, 2024 16:23
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.

3 participants