Code Monkey home page Code Monkey logo

prefect-patterns's Introduction

prefect-patterns

How to Run Example Flows from this Repo

Fork or Clone this Repository

Run the following commands from the root level of your repository.

Create Virtual Environment

conda create --name prfp python=3.9
conda activate prfp

Install Dependencies

pip install -U prefect 
pip install prefect-aws prefect-docker prefect-github python-dotenv

Authenticate to Prefect Cloud and Set Workspace

prefect cloud login
prefect cloud workspace set

Set Up AWS Creds and S3 Bucket

  1. Add a .env file with the following variables:
    AWS_ACCESS_KEY_ID=add-your-key-id
    AWS_SECRET_ACCESS_KEY=add-your-secret-access-key
  2. Create an S3 Bucket with name se-demo-result-storage.

Create Blocks

python utilities/blocks.py

Create Local Docker Work Pool

prefect work-pool create local-docker --type docker

Reconfigure Build and Pull Steps where Necessary

In the prefect.yaml file:

1. Build Step: should point to your image registry.

build:
- prefect_docker.deployments.steps.build_docker_image:
    requires: prefect-docker>=0.3.0
    image_name: taycurran/test-projects-june11 # CHANGE HERE
    tag: '{{ get-commit-hash.stdout }}'
    dockerfile: auto
    push: true

2. Pull Step: If you forked this repo, point to your github URL.

pull:
- prefect.deployments.steps.git_clone:
    repository: https://github.com/taylor-curran/prefect-patterns.git # CHANGE HERE
    branch: main

Create Deployments

prefect deploy --all

Start Worker

  1. Ensure you have a docker damon running.
  2. Open up a new terminal and start your docker typed worker:
prefect worker start --pool local-docker

prefect-patterns's People

Contributors

taylor-curran avatar

Stargazers

Viet Nguyen avatar Rodrigo Muñoz avatar Jeff Hale avatar Libby Theoharis avatar Tobias Rohnstock avatar Emil Christensen avatar

Watchers

 avatar

prefect-patterns's Issues

Bug Template

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Prefect documentation for this issue.
  • I checked that this issue is related to Prefect and not one of its dependencies.

Bug summary

Reproduction

Error

Versions

Additional context

UI Template

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I refreshed the page and this issue still occurred.
  • I checked if this issue was specific to the browser I was using by testing with a different browser.

Bug summary

Reproduction

Error

Browers

  • Chrome
  • Firefox
  • Safari
  • [] Edge

Prefect version

Additional context

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.