portfolio_management / backgroundTask.py
huggingface112's picture
enhanced async, and notification for debugging
29f1ee3
raw
history blame
501 Bytes
# import sys
# sys.path.append('/Users/lamonkey/Desktop/portfolio_management')
import sys
# add pipeline to path
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__))))
from pipeline import daily_update
import panel as pn
from datetime import timedelta
pn.state.schedule_task(
'daily_update', daily_update, period=timedelta(hours=24)
)
# pn.state.schedule_task(
# 'task', run, period=timedelta(seconds=3)
# )
# update stock price and benchmark profile
# update()