static async Task <int> Main(string[] args) { // To run locally, uncomment these lines: //BatchRunner.StoreBatchOutput = false; return(await BatchRunner.Run <CompressDatasetTask>(async (task) => { var options = CompressDatasetTaskOptions.Parse(args); return await task.Run(options); })); }
public async Task <int> Run(CompressDatasetTaskOptions options) { var cancellationToken = CancellationToken.None; Options = options; Log .Add("Running compress dataset task ...") .Add($"Dataset Id: {Options.DatasetId}"); await Compress(cancellationToken); return(0); }