IO-766 Import Jobs from Disk Scan

This commit is contained in:
Patrick Fic
2021-03-18 08:46:44 -07:00
parent a7c986ba71
commit 1ea7a15107
3 changed files with 30 additions and 8 deletions

View File

@@ -67,10 +67,8 @@ namespace BodyshopPartner.Utils
try
{
Thread.Sleep(1000);//Allow a small amount of time to pass before processing the queue item so that any writes can finish.
await GetOpCodes();
DecodeQueueItemJob(item);
await UpsertQueueItem(item);
await UploadJob(item);
}
catch (Exception ex)
{
@@ -84,6 +82,14 @@ namespace BodyshopPartner.Utils
}
}
public static async Task UploadJob(DTO_QueueItem item)
{
Thread.Sleep(1000);//Allow a small amount of time to pass before processing the queue item so that any writes can finish.
await GetOpCodes();
DecodeQueueItemJob(item);
await UpsertQueueItem(item);
}
public static async Task GetOpCodes()
{
var r = new GraphQLRequest