Hi, When I decorate a function with the @task, i'v...
# prefect-community
s
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
@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?