|
@@ -52,6 +52,8 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
public static ConcurrentQueue<(ScreenshotDto screenshotDto, List<StudentArtResult> studentArts)> concurrentQueue
|
|
public static ConcurrentQueue<(ScreenshotDto screenshotDto, List<StudentArtResult> studentArts)> concurrentQueue
|
|
= new ConcurrentQueue<(ScreenshotDto screenshotDto, List<StudentArtResult> studentArts)>();
|
|
= new ConcurrentQueue<(ScreenshotDto screenshotDto, List<StudentArtResult> studentArts)>();
|
|
public static bool busy = false;
|
|
public static bool busy = false;
|
|
|
|
+ private readonly int psize = 20;
|
|
|
|
+ public static SpinWait spinWait = new SpinWait(); // 构造SpinWait实例
|
|
private readonly AzureCosmosFactory _azureCosmos;
|
|
private readonly AzureCosmosFactory _azureCosmos;
|
|
private readonly DingDing _dingDing;
|
|
private readonly DingDing _dingDing;
|
|
private readonly AzureStorageFactory _azureStorage;
|
|
private readonly AzureStorageFactory _azureStorage;
|
|
@@ -775,8 +777,7 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
|
|
}
|
|
}
|
|
return resUrls;
|
|
return resUrls;
|
|
}
|
|
}
|
|
- private readonly int psize = 20;
|
|
|
|
- public static SpinWait spinWait = new SpinWait(); // 构造SpinWait实例
|
|
|
|
|
|
+
|
|
private async Task GenArtStudentPdf(JsonElement json, string msg) {
|
|
private async Task GenArtStudentPdf(JsonElement json, string msg) {
|
|
try
|
|
try
|
|
{
|
|
{
|