Thread
#prefect-community
    redsquare

    redsquare

    2 months ago
    Should prefect clean up the jobs created in k8's - created a scheduled job but the jobs get left in an 'Active' state even thought he pod is completed
    Rob Freedy

    Rob Freedy

    2 months ago
    Hey @redsquare! This discourse document explains how the Kubernetes agent cleans up jobs after flow runs: https://discourse.prefect.io/t/how-and-when-does-a-kubernetes-agent-clean-up-kubernetes-jobs-after-flow-run-completion/951
    redsquare

    redsquare

    2 months ago
    hey @Rob Freedy sorry I should have clarified prefect 2.0
    Kevin Kho

    Kevin Kho

    2 months ago
    This was added in 2.0b7. What version are you on?
    redsquare

    redsquare

    2 months ago
    I am on 2.0b7 - does delete_finished_jobs default to true
    Kevin Kho

    Kevin Kho

    2 months ago
    I’d have to ask
    redsquare

    redsquare

    2 months ago
    is the orion k8s agent not open sourced as yet
    Kevin Kho

    Kevin Kho

    2 months ago
    It is, I’m just not really in front of the computer to dig since I’m OOO. Just know this was definitely being added.
    redsquare

    redsquare

    2 months ago
    No worries - was trying to find it but the agent folder structure is diff on the orion branch
    Kevin Kho

    Kevin Kho

    2 months ago
    This doesn’t exist yet
    redsquare

    redsquare

    2 months ago
    You mean the delete?
    Kevin Kho

    Kevin Kho

    2 months ago
    The auto clean up. It does for 1.0 but 2.0 does not have it yet
    redsquare

    redsquare

    2 months ago
    aha spent ages trying to find it in the source
    cheers