Skip to content

Commit 70903cf

Browse files
authored
Merge pull request #509 from ddps-lab/azure-sps-for-PR
Fix the azure sps collector, workflows issue.
2 parents 6b3d142 + 2426aac commit 70903cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: .github/workflows/azure-sps-lambda-sync.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Zip Lambda function code
2828
run: |
2929
rm -f azure_sps_lambda.zip
30-
zip -j azure_sps_lambda.zip \
30+
zip -j ./collector/spot-dataset/azure/lambda/current_collector/azure_sps_lambda.zip \
3131
./collector/spot-dataset/azure/lambda/current_collector/load_price.py \
3232
./collector/spot-dataset/azure/lambda/current_collector/upload_data.py \
3333
./collector/spot-dataset/azure/lambda/current_collector/lambda_function_sps.py \

Diff for: collector/spot-dataset/azure/lambda/current_collector/load_sps.py

+2
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ def initialize_sps_shared_resources():
401401
SS_Resources.found_invalid_region_retry_count = 0
402402
SS_Resources.found_invalid_instance_type_retry_count = 0
403403

404+
404405
def save_tmp_files_to_s3():
405406
files_to_upload = {
406407
AZURE_CONST.INVALID_REGIONS_JSON_FILENAME: SS_Resources.invalid_regions_tmp,
@@ -460,6 +461,7 @@ def get_variable_from_s3():
460461
print(f"Error loading files from S3: {e}")
461462
return False
462463

464+
463465
def collect_regions_and_instance_types_df_by_priceapi():
464466
"""
465467
이 메서드는 Price API를 호출하여 region 및 instance_type 데이터를 가져옵니다.

0 commit comments

Comments
 (0)