Hi,
When I decorate a function with the @task, i've been receiving this error: psycopg2.ProgrammingError: no results to fetch
This happens when the function/task has a postgres-query that either inserts or updates, so they are not returning anything.
If I remove the decorator, it works. A task run is not even initialized or run when using the decorator, it fails before.
Any clues?
m
Meyy
05/02/2023, 7:24 PM
@Stefan Am encountering same issue. Seems to work fine in Prefect 1 but same code throws above error in Prefect 2. Were you able to find the root cause?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.