https://prefect.io logo
g

Guillaume Latour

02/16/2022, 3:04 PM
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?
k

Kevin Kho

02/16/2022, 3:05 PM
config.flows.checkpointing = "false"
gets overridden in Cloud backed runs. You need to turn it off in the task level
@task(checkpoint=False)
.
upvote 1
g

Guillaume Latour

02/16/2022, 3:13 PM
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 😄
a

Anna Geller

02/16/2022, 3:15 PM
it works the same way for Cloud and Server
upvote 1
g

Guillaume Latour

02/18/2022, 1:27 PM
yay it worked \o/
ty ❤️
👍 1
a

Anna Geller

02/18/2022, 1:36 PM
3 Views