private async Task UploadFiles(Job job, string basePath, IList <InstanceStorageInfo> instances)
        {
            _logger.Log(LogLevel.Information, "Uploading {0} instances", instances.Count);
            await _payloadsApi.Upload(job.PayloadId, basePath, instances.Select(p => p.InstanceStorageFullPath));

            _logger.Log(LogLevel.Information, "Upload to payload completed");
        }
        private async Task UploadFiles(Job job, string basePath, IList <string> filePaths)
        {
            using (_logger.BeginScope(new Dictionary <string, object> {
                { "JobId", job.JobId }, { "PayloadId", job.PayloadId }
            }))
            {
                _logger.Log(LogLevel.Information, "Uploading {0} files.", filePaths.Count);
                await _payloadsApi.Upload(job.PayloadId, basePath, filePaths);

                _logger.Log(LogLevel.Information, "Upload to payload completed.");
            }
        }