Alan
10/30/2024, 10:47 PMMarvin
10/30/2024, 10:48 PMAlan
10/30/2024, 10:48 PMMarvin
10/30/2024, 10:48 PMflow_run
or task_run
will automatically delete its associated flow_run_state
or task_run_state
. Generally, in database management, cascading deletes aren't assumed unless explicitly stated. However, Prefect might handle this with special logic not covered in the available excerpts.
Since the documentation doesn't provide clarity, I recommend checking with Prefect's API or raising a question with their support or community for an authoritative answer. Alternatively, if the environment allows, testing this in a safe setting could help observe the behavior directly.
For more detailed exploration, you may refer to Prefect's state management or client handling guides here and here.