mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-22 22:28:50 +00:00
Upgrading dotnet version to 6.0.300 (#1947)
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -262,7 +262,7 @@ jobs:
|
|||||||
- name: Setup .NET Core SDK
|
- name: Setup .NET Core SDK
|
||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.202'
|
dotnet-version: '6.0.300'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
cd src/ApiService/
|
cd src/ApiService/
|
||||||
|
@ -33,7 +33,7 @@ public class TimerTasks {
|
|||||||
var expiredJobs = _jobOperations.SearchExpired();
|
var expiredJobs = _jobOperations.SearchExpired();
|
||||||
|
|
||||||
await foreach (var job in expiredJobs) {
|
await foreach (var job in expiredJobs) {
|
||||||
_logger.Info($"stopping expired job. job_id:{job.JobId }");
|
_logger.Info($"stopping expired job. job_id:{job.JobId}");
|
||||||
await _jobOperations.Stopping(job, _taskOperations);
|
await _jobOperations.Stopping(job, _taskOperations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ public class TaskOperations : StatefulOrm<Task, TaskState>, ITaskOperations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public IAsyncEnumerable<Task> SearchExpired() {
|
public IAsyncEnumerable<Task> SearchExpired() {
|
||||||
var timeFilter = $"end_time lt Datetime'{DateTimeOffset.UtcNow.ToString("o") }'";
|
var timeFilter = $"end_time lt Datetime'{DateTimeOffset.UtcNow.ToString("o")}'";
|
||||||
return QueryAsync(filter: timeFilter);
|
return QueryAsync(filter: timeFilter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ namespace ApiService.OneFuzzLib.Orm {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (func != null) {
|
if (func != null) {
|
||||||
_logTracer.Info($"processing state update: {typeof(T)} - PartitionKey {_partitionKeyGetter?.Value() } {_rowKeyGetter?.Value() } - %s");
|
_logTracer.Info($"processing state update: {typeof(T)} - PartitionKey {_partitionKeyGetter?.Value()} {_rowKeyGetter?.Value()} - %s");
|
||||||
return await func(entity);
|
return await func(entity);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user