Thread
#prefect-community
    g

    Guillaume Latour

    7 months ago
    Hi everyone, I stumbled upon an error as the prefect engine serializer tried to pickle a task result:
    TypeError: cannot pickle 'lxml.etree.XMLSchema' object
    Of course the result of one of my task is of this type and I would prefer not to change it. I tried to launch that process again with
    config.flows.checkpointing = "false"
    in the
    ~/.prefect/config.toml
    file but I got the same error... This is an error that I cannot reproduce locally with
    prefect run <flow>
    . Do you guys have any leads on how I can solve this issue or at least reproduce the error locally?
    Kevin Kho

    Kevin Kho

    7 months ago
    config.flows.checkpointing = "false"
    gets overridden in Cloud backed runs. You need to turn it off in the task level
    @task(checkpoint=False)
    .
    g

    Guillaume Latour

    7 months ago
    oh. But I am hosting the prefect server, would that change anything ? I'll try to put this option in the decorator nonetheless
    ty for your quick response 😄
    Anna Geller

    Anna Geller

    7 months ago
    it works the same way for Cloud and Server
    g

    Guillaume Latour

    7 months ago
    yay it worked \o/
    ty ❤️
    Anna Geller

    Anna Geller

    7 months ago