Skip to content

nogsantos/poc-prefect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poc Prefect

Requirements

  • Python 3.6.x
  • Docker

Local Setup

Project dependencies

pipenv install

Prefect viz module

  • Tool - installing-optional-dependencies

Tools for visualizing Prefect flows.

pipenv run pip install 'prefect[viz]'

Localhost development

Init prefect local backend server

pipenv run prefect backend server

Prefect UI init

pipenv run prefect server start

Create a project

pipenv run prefect create project "Tests"

Registering a task

pipenv run prefect register -p ./etl/funcional_flow.py --project "Tests"

Setup Universal deployment

Init prefect universal backend cloud

pipenv run prefect backend cloud

Autenticate

pipenv run prefect auth login --key <key>

Create a project

pipenv run prefect create project <projct-name>

Register the flow

As an example, using the flow funcional_flow.py to create in https://cloud.prefect.io/

pipenv run prefect register -p ./etl/funcional_flow.py --project <project-name>

Start the agent

pipenv run prefect agent <agent-name> start