Joseph Loss
05/13/2021, 8:11 PMFailed to load and execute Flow's environment: ModuleNotFoundError("No module named '/root/'")
Kevin Kho
Kevin Kho
Joseph Loss
05/13/2021, 10:57 PMversion: "3.7"
services:
agent:
build: .
command: bash -c "prefect agent local start -t 7sm0QwSANd1uo0KD5To2fQ --label pwcm"
# command: bash -c "prefect agent local start -t 7sm0QwSANd1uo0KD5To2fQ --label development"
volumes:
- /srv/docker/prefect/flows:/root/.prefect/flows
- type: bind
source: ./config.toml
target: /root/.prefect/config.toml
read_only: true
client:
build: .
command: bash -c "python /worker/main.py && python /worker/uploadData.py"
volumes:
- /srv/docker/prefect/flows:/root/.prefect/flows
- type: bind
source: ./prefectPWCM/worker/main.py
target: /worker/main.py
read_only: true
- type: bind
source: ./prefectPWCM/worker/uploadData.py
target: /worker/uploadData.py
read_only: true
- type: bind
source: ./config.toml
target: /root/.prefect/config.toml
read_only: true
and the config.toml
# debug mode
debug = true
# base configuration directory (typically you won't change this!)
home_dir = "~/.prefect"
backend = "cloud"
Joseph Loss
05/13/2021, 10:58 PMKevin Kho
Joseph Loss
05/13/2021, 10:59 PM# from prefect.storage import Docker
# storage = Docker(registry_url="<http://ghcr.io/chicago-joe/|ghcr.io/chicago-joe/>", image_name="pwcm", image_tag="0.1.0")
# storage.add_flow(weeklyPortfolioFlow)
# storage.add_flow(dailyTradingFlow)
# storage = storage.build()
# weeklyPortfolioFlow.storage = storage
# dailyTradingFlow.storage = storage
But I wasn't sure if that was necessaryKevin Kho
Joseph Loss
05/13/2021, 11:01 PMKevin Kho