Kevin Lloyd Esguerra
05/14/2023, 5:07 AMKevin Lloyd Esguerra
05/14/2023, 5:07 AMFROM prefecthq/prefect:2.7.7-python3.9
COPY docker-requirements.txt .
RUN pip install -r docker-requirements.txt --no-cache-dir
COPY credentials ./credentials
COPY deployments ./deployments
COPY flows ./flows
RUN prefect work-pool create finance-workpool
RUN prefect work-pool set-concurrency-limit finance-workpool 1
RUN python flows/docker_main_flow.py
RUN prefect deployments set-schedule 'finance main flow/finance_docker_main_flow' --cron "*/5 * * * *"
RUN prefect deployments run 'finance main flow/finance_docker_main_flow'
RUN prefect agent start -p finance-workpool
Kevin Lloyd Esguerra
05/14/2023, 5:12 AMprefect deployments run
should be changed into something else, but I can't figure out an alternativeThomas Weatherston
05/14/2023, 11:37 AMKevin Lloyd Esguerra
05/14/2023, 11:44 AMFROM prefecthq/prefect:2.7.7-python3.9
COPY docker-requirements.txt .
RUN pip install -r docker-requirements.txt --no-cache-dir
COPY credentials ./credentials
COPY flows ./flows
RUN prefect work-pool create finance-workpool
RUN prefect work-pool set-concurrency-limit finance-workpool 1
RUN prefect deployment build flows/main_flow.py:main_flow \
--name finance_docker_deployment \
--pool finance-workpool \
--work-queue default \
--cron "*/5 * * * *" \
--timezone "Asia/Manila"
RUN prefect deployment apply main_flow-deployment.yaml
RUN prefect deployment run 'finance main flow/finance_docker_deployment'
RUN prefect agent start --pool finance-workpool --work-queue default