Questions tagged [prefect]

Prefect is a Python-based workflow management system (ETLs are an example use-case). Users organize Tasks into Flows, define dependencies, schedules, etc., and Prefect takes care of the rest.

Prefect

Prefect is an open-source workflow and orchestration framework, written in Python 3, that bills itself as an up-and-coming alternative to Airflow. Its design philosophy emphasizes the benefits of negative engineering: that is, features designed to manage the failure and recoverability of workflows as a natural extension of normal development. Its creators also tout the benefits of its hybrid execution model, whereby orchestration occurs with zero knowledge of either the code being run or the data being manipulated. It also boats features such as first-class workflow scheduling, dynamic task generation, and horizontal workflow scalability via out-of-the-box integration with Dask Distributed.

Prefect consists of three components:

  • Prefect Core: the central features of development in the Prefect ecosystem, by which Tasks are composed into directed acyclic graphs (DAGs) called Flows.
  • Prefect Server: the GraphQL application and UI that, taken together, allow users to manage flow submission and execution in an easy-to-use and interactive manner.
  • Prefect Cloud: the optional commercial offering of the Prefect maintainers, which organizations can use to leverage managed infrastructure in addition to the benefits of Prefect Server.

More information about Prefect is available at:

179 questions
0
votes
1 answer

How do I include both data and state dependencies in a Prefect flow?

This seems like it should be simple, but I can't figure out how to include both state and data dependencies in a single flow. Here is what I attempted (simplified): def main(): with Flow("load_data") as flow: test_results =…
justinm1
  • 71
  • 3
  • 8
0
votes
1 answer

Which tool can provide flexibility and simplicity? Argo vs Cellery vs Prefect

I am currently working on the development of an API. I want to upload data via a frontend and this data is then processed on a server. I would like to develop the individual steps independently of one another and also maintain them independently.…
markusdd
  • 11
  • 4
0
votes
1 answer

How to deploy a Kubernetes Job at AKS with Prefect

I'm new to Prefect and would like to deploy a Kubernetes Job at an Azure Kubernetes Service using Prefect. I've set up a Linux Container including Prefect, kubectl. I could establish a connection to the AKS cluster and by using kubectl, I could…
bianconero
  • 215
  • 1
  • 12
0
votes
1 answer

prefect.io kubernetes agent and task execution

While reading kubernetes agent documentation, I am getting confused with below line "Configure a flow-run to run as a Kubernetes Job." Does it mean that the process which is incharge of submitting flow and communication with api server will run as…
Neeraj Kumar
  • 836
  • 1
  • 10
  • 29
0
votes
1 answer

Supervisor kills Prefect agent with SIGTERM unexpectedly

I'm using a rapsberry pi 4, v10(buster). I installed supervisor per the instructions here: http://supervisord.org/installing.html Except I changed "pip" to "pip3" because I want to monitor running things that use the python3 kernel. I'm using…
Jamalan
  • 482
  • 4
  • 15
0
votes
1 answer

How to organize prefect flow with the using of cmd arguments?

Hi I am trying to apply prefect to my project which is using the library click in dealing with command-line paras. Below is a demo code snippet: @click.command() @click.option( "-p", "--pages", type=int, default=0, …
chaos
  • 338
  • 4
  • 16
0
votes
1 answer

If `prefect` task failed, is it possible to re-run it with different `dask` parameters?

Consider a prefect task whose memory requirements are not known in advance. If the task fails because the worker does not have sufficient memory, is it possible to modify the dask worker parameters and re-run the task? It would be great if there's a…
SultanOrazbayev
  • 14,900
  • 3
  • 16
  • 46
0
votes
1 answer

Cant Access Prefect Server Remotely

I used the command prefect server start --postgres-port=5433 --server-port=5001 --hasura-port=5002 --graphql-port=5003 --expose to start prefect server at the allowed ports in my azure network. And when i do a docker ps i get CONTAINER ID IMAGE …
caxefaizan
  • 153
  • 11
0
votes
1 answer

Error in Prefect when build docker image, what triggers Prefect to create the tmp folder with healthcheck.py

When using docker as storage, in the call as below: prefect register --project yourproject -p yourflow.py It seems that perfect creates a tmp{randomNumber} folder and puts healthcheck.py and a Dockerfile, which participate the docker build. But I…
Zheng Xie
  • 415
  • 3
  • 13
0
votes
1 answer

RunGreatExpectationsValidation execution returns an exception

I am struggling on a great_expectations integration problem. I obviously use RunGreatExpectationsValidation task with: validation_task = RunGreatExpectationsValidation() with Flow( "GE_pull_and_run", ) as GE_pull_and_run_flow: ....... …
vBob
  • 3
  • 1
0
votes
1 answer

How to increase scheduler memory in GKE for DASK

I have deployed a kubernetes cluster on GCP with a combination of prefect and dask. The jobs run fine in a normal scenario but it is failing to scale for 2 times the data. So far, I have narrowed it down to scheduler getting shut off due to high…
0
votes
1 answer

How to run prefect agent in background in centos

I want to run prefect agent as background process. prefect agent local start also need to check the status of the running agent (health check) for health check up i used below command prefect agent local start -f --agent-address…
0
votes
1 answer

create flow run on localhost with http request: How to pass parameters? GRAPHQL_PARSE_FAILED

I want to start a flow run with a post request. curl -X POST \ -H "Content-Type: application/json" \ -d '{"query": "{ flow{id} }"}' \ http://localhost:4200/graphql Above is basic interection with api. The mutation query: mutation { …
GolD.
  • 41
  • 6
0
votes
2 answers

Overwrite methods but keep decorator (python)

I got a Class and a Subclass and want to inherit a method with the decorator @task from framework prefect.io. Code Sample: Class @task def test1(self): pass Subclass def test2(self): print("succeed") But now the method test2 doesn´t have…
TomTom
  • 27
  • 7
0
votes
0 answers

AttributeError: 'NoneType' object has no attribute 'fetchall' in Prefect

I have been using the following code in production for the last couple of months, @task def sql_run_procs(): """This is a delete and update...""" # Get our logger logger = prefect.utilities.logging.get_logger() # type: ignore conn…
kn0t
  • 303
  • 6
  • 13
1 2 3
11
12