Brian Newman
11/01/2023, 9:28 PMquote
annotation to skip resolution of inputs.Marvin
11/01/2023, 9:28 PMquote
annotation to skip resolution of inputs if your parameter type is not supported. This might be worth trying if the 'ingest_item' parameter is of a type that Prefect has trouble handling.
Unfortunately, I couldn't find specific documentation or forum posts related to the exact error you're encountering. You might want to consider reaching out to the Prefect community for more specific guidance.
If you have more context or specific code snippets, I might be able to provide more targeted advice.Brian Newman
11/01/2023, 9:29 PMquote
annotationMarvin
11/01/2023, 9:31 PMquote
annotation in Prefect. It might be best to reach out to the Prefect community or support for more detailed guidance on this.
However, in general, annotations in Python are usually used in the form of decorators. If quote
is a decorator provided by Prefect, you might use it like this:
@quote
def my_task(ingest_item):
# Your task code here
This is just a guess based on typical Python usage, and might not be accurate for Prefect. Please consult the Prefect documentation or community for accurate information.Nate
11/01/2023, 9:33 PMNate
11/01/2023, 9:33 PMBrian Newman
11/01/2023, 9:34 PMNate
11/01/2023, 9:34 PMIngestItem
model with prefect? and the model definition, if possibleBrian Newman
11/01/2023, 9:36 PMNate
11/01/2023, 9:40 PMPydanticBaseModelConfig
class is to know for sure what's going on, but as a workaround you could take the exceptions suggestion and quote the input param like
from prefect.utilities.annotations import quote
#wherever you call your flow
await fl_process_flow(..., quote(ingest_item))
which will tell prefect skip inspecting that input paramBrian Newman
11/01/2023, 9:52 PMNate
11/01/2023, 9:55 PM