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

@@ -38,18 +38,18 @@ namespace PartSource.Automation.Jobs
{
try
{
FtpFileInfo lastUploadedFile = _ftpService.ListFilesExtended()
.Where(f => f.FileType == FtpFileType.File && f.Filename.IndexOf(package) > -1)
.OrderByDescending(f => f.Modified)
.FirstOrDefault();
// FtpFileInfo lastUploadedFile = _ftpService.ListFilesExtended()
//.Where(f => f.FileType == FtpFileType.File && f.Filename.IndexOf(package) > -1)
//.OrderByDescending(f => f.Modified)
//.FirstOrDefault();
if (lastUploadedFile == null)
{
_logger.LogInformation($"No {package} file available.");
return;
}
// if (lastUploadedFile == null)
// {
// _logger.LogInformation($"No {package} file available.");
// return;
// }
_ftpService.Download($"{package}.txt");
// _ftpService.Download($"{package}.txt");
_ssisService.Execute($"{package}.dtsx");
_logger.LogInformation($"Execution of SSIS package {package} completed successfully.");