Hakim
10/28/2024, 3:08 PMprefect.yaml
I followed the guide in the GitHub repo. But I keep getting this error
TypeError: No method for generating JsonSchema for core_schema.type='invalid' (expected: GenerateEmptySchemaForUserClasses.invalid_schema)
for reference here is my prefect.yaml
content
# Generic metadata about this project
name: flows
prefect-version: 3.0.0
# build section allows you to manage and build docker images
build:
- prefect_docker.deployments.steps.build_docker_image:
id: build-image
requires: prefect-docker>=0.6.1
image_name: "lab-prefect-3"
tag: latest
dockerfile: Dockerfile
platform: "linux/amd64"
## push section allows you to manage if and how this project is uploaded to remote locations
push:
- prefect_docker.deployments.steps.push_docker_image:
requires: prefect-docker>=0.6.1
image_name: "{{ build-image.image_name }}"
tag: "{{ build-image.tag }}"
# the definitions section allows you to define reusable components for your deployments
definitions:
tags: &common_tags
- "eks"
work_pool: &common_work_pool
name: "my-pool"
job_variables:
image: "{{ build-image.image }}"
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: "lab-prefect-3-deployment"
tags: *common_tags
schedule: null
entrypoint: "src/flows/flow.py:hello"
parameters:
name: "Hakim"
work_pool: *common_work_pool
and here is my project tree structure:
.
├── Dockerfile
├── README.md
├── prefect.yaml
├── pyproject.toml
└── src
├── flows
│ └── flow.py
└── prefect_pack
├── __init__.py
└── utils.py