This commit is contained in:
2026-02-17 09:47:41 -05:00
parent dcd1a9ccec
commit fe97a1e51a
18 changed files with 107 additions and 123 deletions

View File

@@ -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.");
}
}
}