WIP
This commit is contained in:
@@ -100,20 +100,20 @@ namespace PartSource.Automation.Jobs
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
count += products.Count();
|
||||
products = await _shopifyClient.Products.GetNext();
|
||||
_logger.LogInformation($"Total updated: {count}");
|
||||
}
|
||||
//try
|
||||
//{
|
||||
// count += products.Count();
|
||||
// products = await _shopifyClient.Products.GetNext();
|
||||
// _logger.LogInformation($"Total updated: {count}");
|
||||
//}
|
||||
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogWarning(ex, "Failed to get the next set of products. Retrying");
|
||||
products = await _shopifyClient.Products.GetPrevious();
|
||||
}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// _logger.LogWarning(ex, "Failed to get the next set of products. Retrying");
|
||||
// products = await _shopifyClient.Products.GetPrevious();
|
||||
//}
|
||||
|
||||
_emailService.Send("Pricing Update Completed", $"The pricing update has completed.");
|
||||
// _emailService.Send("Pricing Update Completed", $"The pricing update has completed.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user