-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Bug summary
We are missing task runs in our flow runs.
Our worker is at version 3.6.4. We started our server on 3.6.4 too and tried to raise servers version one by one. It starts happening on server version 3.6.7. We also tried 3.6.17, but the problem was still present and newer ones still doesn't seem to address it based on the changelogs, so didnt try any other versions.
This is the query that I use to confirm it in the database. When I look up these flow ids in UI I confirm that there are no tasks, but they actually ran on the worker (based on logs), but were not created in db.
SELECT *
FROM flow_run
WHERE NOT EXISTS (
SELECT 1
FROM task_run
WHERE task_run.flow_run_id = flow_run.id
)
and flow_run.state_type in ('COMPLETED')
and created between '2026-03-01' and '2026-12-12'
ORDER by flow_run.created desc
Unfortunately flows where it is missing are completely random. Tasks seem to run successfully, but they are not shown in the UI nor in the database. I just don't know how to investigate this any more, there are no clues, but I'd like to at least report it.
Version info
Version: 3.6.7
API version: 0.8.4
Python version: 3.12.13
Git commit: ebfef643
Built: Thu, Dec 18, 2025 07:54 PM
OS/Arch: linux/x86_64
Profile: ephemeral
Server type: ephemeral
Pydantic version: 2.12.5
Server:
Database: postgresql
PostgreSQL version: 16.13
Integrations:
prefect-email: 0.4.2
Additional context
No response