Skip to content

Commit 85fdc9b

Browse files
authored
Fix typo (#2695)
1 parent 7f58504 commit 85fdc9b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Runner.Listener/JobDispatcher.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void Run(Pipelines.AgentJobRequestMessage jobRequestMessage, bool runOnce
9898
Guid dispatchedJobId = _jobDispatchedQueue.Dequeue();
9999
if (_jobInfos.TryGetValue(dispatchedJobId, out currentDispatch))
100100
{
101-
Trace.Verbose($"Retrive previous WorkerDispather for job {currentDispatch.JobId}.");
101+
Trace.Verbose($"Retrive previous WorkerDispatcher for job {currentDispatch.JobId}.");
102102
}
103103
}
104104

@@ -162,12 +162,12 @@ public async Task WaitAsync(CancellationToken token)
162162
dispatchedJobId = _jobDispatchedQueue.Dequeue();
163163
if (_jobInfos.TryGetValue(dispatchedJobId, out currentDispatch))
164164
{
165-
Trace.Verbose($"Retrive previous WorkerDispather for job {currentDispatch.JobId}.");
165+
Trace.Verbose($"Retrive previous WorkerDispatcher for job {currentDispatch.JobId}.");
166166
}
167167
}
168168
else
169169
{
170-
Trace.Verbose($"There is no running WorkerDispather needs to await.");
170+
Trace.Verbose($"There is no running WorkerDispatcher needs to await.");
171171
}
172172

173173
if (currentDispatch != null)
@@ -176,7 +176,7 @@ public async Task WaitAsync(CancellationToken token)
176176
{
177177
try
178178
{
179-
Trace.Info($"Waiting WorkerDispather for job {currentDispatch.JobId} run to finish.");
179+
Trace.Info($"Waiting WorkerDispatcher for job {currentDispatch.JobId} run to finish.");
180180
await currentDispatch.WorkerDispatch;
181181
Trace.Info($"Job request {currentDispatch.JobId} processed succeed.");
182182
}
@@ -190,7 +190,7 @@ public async Task WaitAsync(CancellationToken token)
190190
WorkerDispatcher workerDispatcher;
191191
if (_jobInfos.TryRemove(currentDispatch.JobId, out workerDispatcher))
192192
{
193-
Trace.Verbose($"Remove WorkerDispather from {nameof(_jobInfos)} dictionary for job {currentDispatch.JobId}.");
193+
Trace.Verbose($"Remove WorkerDispatcher from {nameof(_jobInfos)} dictionary for job {currentDispatch.JobId}.");
194194
workerDispatcher.Dispose();
195195
}
196196
}
@@ -209,7 +209,7 @@ public async Task ShutdownAsync()
209209
{
210210
try
211211
{
212-
Trace.Info($"Ensure WorkerDispather for job {currentDispatch.JobId} run to finish, cancel any running job.");
212+
Trace.Info($"Ensure WorkerDispatcher for job {currentDispatch.JobId} run to finish, cancel any running job.");
213213
await EnsureDispatchFinished(currentDispatch, cancelRunningJob: true);
214214
}
215215
catch (Exception ex)
@@ -222,7 +222,7 @@ public async Task ShutdownAsync()
222222
WorkerDispatcher workerDispatcher;
223223
if (_jobInfos.TryRemove(currentDispatch.JobId, out workerDispatcher))
224224
{
225-
Trace.Verbose($"Remove WorkerDispather from {nameof(_jobInfos)} dictionary for job {currentDispatch.JobId}.");
225+
Trace.Verbose($"Remove WorkerDispatcher from {nameof(_jobInfos)} dictionary for job {currentDispatch.JobId}.");
226226
workerDispatcher.Dispose();
227227
}
228228
}
@@ -327,7 +327,7 @@ private async Task EnsureDispatchFinished(WorkerDispatcher jobDispatch, bool can
327327
WorkerDispatcher workerDispatcher;
328328
if (_jobInfos.TryRemove(jobDispatch.JobId, out workerDispatcher))
329329
{
330-
Trace.Verbose($"Remove WorkerDispather from {nameof(_jobInfos)} dictionary for job {jobDispatch.JobId}.");
330+
Trace.Verbose($"Remove WorkerDispatcher from {nameof(_jobInfos)} dictionary for job {jobDispatch.JobId}.");
331331
workerDispatcher.Dispose();
332332
}
333333
}

0 commit comments

Comments
 (0)