IO-766 Import Jobs from Disk Scan
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user