Skip to content

Commit

Permalink
Update lambda_function.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chris0765 authored Aug 9, 2023
1 parent 17009e7 commit c805a93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion collector/spot-dataset/gcp/lambda/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from const_config import GcpCollector, Storage
from load_pricelist import get_price, preprocessing_price, drop_negative
from get_metadata import get_aggregated_list, parsing_data_from_aggragated_list
from s3_management import save_raw, update_latest, upload_timestream, load_metadata
from s3_management import save_raw, update_latest, upload_timestream, load_metadata, update_query_selector
from compare_data import compare
from utility import slack_msg_sender

Expand Down Expand Up @@ -93,6 +93,8 @@ def gcp_collect(timestamp):

changed_df, removed_df = compare(df_previous, df_current, workload_cols, feature_cols)

update_query_selector(changed_df)

# wirte timestream
upload_timestream(changed_df, timestamp)
upload_timestream(removed_df, timestamp)
Expand Down

0 comments on commit c805a93

Please sign in to comment.