Fix the job failure update only update one record issue

This commit is contained in:
Evan Cui 2019-02-01 15:01:39 +08:00
Родитель 4f8a28c34e
Коммит 16a06564f0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -123,7 +123,7 @@
{
await T.Task.WhenAll(
u.AddJobsEventAsync(jobType, jobId, message, EventType.Alert, token, logger),
u.UpdateJobAsync(u.GetJobPartitionKey(jobType, jobId), j => j.State = JobState.Failed, token, logger));
u.UpdateJobAsync(jobType, jobId, j => j.State = JobState.Failed, token, logger));
}
public static T.Task AddJobsEventAsync(this CloudUtilities u, Job job, string message, EventType type = EventType.Information, CancellationToken token = default(CancellationToken), ILogger logger = null) =>