Skip to content

Commit

Permalink
prefectexample
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed Feb 8, 2024
1 parent 2bc3644 commit 9823e0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/prefectexample/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ARG BLACKBAR_S3_SECRET_ACCESS_KEY="provide-supersecret-key"
# Login + indicate under which workspace this project is run
ARG PREFECT_API_KEY="provide-prefect-api-key"
ARG PREFECT_WORKSPACE="blackbar/data-flows"
RUN echo 'cloud' | prefect cloud login --key \${PREFECT_API_KEY} --workspace \${PREFECT_WORKSPACE}
RUN echo 'cloud' | prefect cloud login --key ${PREFECT_API_KEY} --workspace ${PREFECT_WORKSPACE}
# Work queue to listen to tasks to execute
ENV PREFECT_WORKQUEUE="blackbar-test"

Expand All @@ -40,10 +40,10 @@ RUN echo "Finished installation of python package"
# RUN python -m pip install prefect

# Test
ENV TEST=\${PREFECT_WORKSPACE}
ENV TEST=${PREFECT_WORKSPACE}

# Get Python code to schedule
COPY deployment.py /opt/prefect/flows/deployment.py

# Create the Deployment + start an agent to listen to tasks in the workqueue
CMD python flows/deployment.py && prefect agent start --work-queue \${PREFECT_WORKQUEUE}
CMD python flows/deployment.py && prefect agent start --work-queue ${PREFECT_WORKQUEUE}

0 comments on commit 9823e0b

Please sign in to comment.