Andreas Nigg
07/23/2022, 6:46 AMFound 1 invalid deployments:
1 validation error for deployment with name 'sync_goodread_score_to_volat_bigquery'
infrastructure
Can't instantiate abstract class Infrastructure with abstract methods preview, run (type=type_error)
Please find my deployment in the threadname: sync_goodread_score_to_volat_bigquery
flow:
path: ./sync_drive_goodread_score.py
name: sync_drive_goodread_score
tags:
- k8s
infrastructure:
type: process
schedule:
cron: "0 2 * * *"
timezone: "Europe/Vienna"
Anna Geller
07/23/2022, 1:00 PMfrom prefect.infrastructure import Process
from prefect.deployments import Deployment
from prefect import flow
@flow
def hello_world():
print("Hello world!")
Deployment(
name="example",
flow=hello_world,
infrastructure=Process(),
)
infrastructure
fail with: `Can't instantiate abstract class Infrastructure with abstract methods preview, run (type=type_error)`"Marvin
07/23/2022, 1:14 PMAndreas Nigg
07/24/2022, 5:23 AMAnna Geller
07/24/2022, 1:45 PM