diff --git a/.vscode/launch.json b/.vscode/launch.json index 305a43ced..4dc08fbbe 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -106,7 +106,7 @@ "args": [ "historical", "--rstart", "11/25/2019", - "--rend", "11/29/2019", + "--rend", "11/25/2019", "--rsymbol", "ZN", "--rsecuritytype", "Synthetic", "--post_process_file_type", "Trade", diff --git a/src/client/spark_excel/historical_query.xlsm b/src/client/spark_excel/historical_query.xlsm new file mode 100644 index 000000000..4de72045d Binary files /dev/null and b/src/client/spark_excel/historical_query.xlsm differ diff --git a/src/client/spark_historical/Query/FileGenerator.cs b/src/client/spark_historical/Query/FileGenerator.cs index 4da14a667..d8412e825 100644 --- a/src/client/spark_historical/Query/FileGenerator.cs +++ b/src/client/spark_historical/Query/FileGenerator.cs @@ -102,14 +102,15 @@ namespace bts.history return; } - async public override void Dispose() + public override void Dispose() { base.Dispose(); foreach(var vs in _fs) { + Console.WriteLine($"Upload {vs.Key} to aws: {_publish_to_aws}"); if(_publish_to_aws) { - await _ul.upload_s3(vs.Key, vs.Value); + _ul.upload_s3(vs.Key, vs.Value).GetAwaiter().GetResult(); Console.WriteLine($"File {vs.Key} written to aws s3 {_ul.bucket_name} "); } vs.Value.Dispose();