opt:优化轨迹刷新定时任务等待超时问题
This commit is contained in:
parent
7482521e75
commit
4b0acb1978
@ -78,9 +78,12 @@ public class TrackPullService : ApplicationService
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[HttpPost("Track/RefreshForTask")]
|
||||
public async Task<bool> RefreshForTaskAsync()
|
||||
public bool RefreshForTaskAsync()
|
||||
{
|
||||
Task.Run(async () =>
|
||||
{
|
||||
var configs = await _trackPullCacheService.GetAllPullConfigsAsync();
|
||||
|
||||
foreach (var config in configs)
|
||||
{
|
||||
var redisKey = _trackPullCacheService.TrackPullKey(config.SubSystemId, config.ServiceProviderId);
|
||||
@ -118,6 +121,7 @@ public class TrackPullService : ApplicationService
|
||||
|
||||
await RedisHelper.Client.SetExAsync(redisKey, config.PullInterval * 60, orders.Count);
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user