Skip to content

Commit 0ce2654

Browse files
committed
Changed Worker task priority to high
1 parent 96bcfd5 commit 0ce2654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WorkflowConcurrency/Sources/Worker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct WorkerWorkflow<WorkerType: Worker>: Workflow {
6363
let sink = context.makeOutputSink()
6464
context.runSideEffect(key: state) { lifetime in
6565
let send: @MainActor(Output) -> Void = sink.send
66-
let task = Task {
66+
let task = Task(priority: .high) {
6767
logger.logStarted()
6868
let output = await worker.run()
6969
if Task.isCancelled {

0 commit comments

Comments
 (0)