File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Sentiment Pipeline
22
33on :
44 schedule :
5- - cron : " 0 */6 * * *" # every 3 hours
5+ - cron : " 0 */12 * * *" # every 12 hours utc
66 workflow_dispatch : # 수동 실행 버튼
77
88jobs :
Original file line number Diff line number Diff line change 11"""
22Predict node
33
4- fetches news, runs sentiment model, uploads results to supabase
4+ part 1 : fetches news, runs sentiment model, uploads results to supabase
5+ part 2 : fetches stock price, run sentiment algorithm, uploads result to supabase
56"""
67
78import hashlib # hash
1112
1213from tensorflow .keras .preprocessing .sequence import pad_sequences
1314from finvizfinance .news import News
14- from zoneinfo import ZoneInfo
1515
1616from upstock .config import paths , supabase
1717from upstock .models .artifacts import load_model_safe , load_pickle
@@ -123,7 +123,8 @@ def run_predict():
123123
124124 else :
125125 logger .warning ('upload data not exist' )
126-
126+
127+ # market sentiment part
127128 spy = fetch_prices ('SPY' )
128129 vix = fetch_prices ('^VIX' )
129130
You can’t perform that action at this time.
0 commit comments