feature: job exporting (resolves #155)

This commit is contained in:
Gary Sharp committed 2024-12-12 16:02:12 +11:00
1 parent 90c709c4c1
commit a6b9cd1af2
55 files changed
+3197 -412

No files matched your search

@@ -15,6 +15,9 @@ namespace Disco.Services
{
public static ExportResult WriteExport<T>(IExportOptions options, IScheduledTaskStatus status, List<ExportFieldMetadata<T>> metadata, List<T> records) where T : IExportRecord
{
if (records.Count == 0)
return new ExportResult();
var filenameWithoutExtension = $"{options.FilenamePrefix}-{status.StartedTimestamp.Value:yyyyMMdd-HHmmss}";
MemoryStream stream;
string filename;