Hi, for prefect 3.0 there is documentation on how ...
# ask-community
n
Hi, for prefect 3.0 there is documentation on how to define class instance methods as flows. https://docs-3.prefect.io/3.0rc/develop/write-flows#class-methods However if I do something like myclass = MyClass() and then serve it using myclass.run.serve(), I get the following error when trying to run the deployment:
Copy code
prefect.exceptions.PrefectHTTPStatusError: Client error '409 Conflict' for url '<http://127.0.0.1:4200/api/deployments/eab89996-54c9-4802-b6c0-94d9daadc4f0/create_flow_run>'
Response: {'detail': "Error creating flow run: Validation failed. Failure reason: 'self' is a required property"}
Any Ideas?
a
Hey @Nicolas did you find a solution for this? I am running into the same problem
n
no 😞
a