Thread
#prefect-community
    Robin

    Robin

    1 year ago
    Dear all, while the flow was running perfectly before and still runs locally, I suddenly get an error that seems to be related to pickle when running it on cloud:
    TypeError: can't pickle _thread.lock objects
    See full error message below. Any ideas, what could be the reason?
    nicholas

    nicholas

    1 year ago
    Hi @Robin - could you delete your stack trace and put it in this thread instead?
    Robin

    Robin

    1 year ago
    I get the following error in the DEBUG level logging after a message saying
    Checking flow run state...
    ...
    nicholas

    nicholas

    1 year ago
    Thanks @Robin, it looks like this might be a bug on the Core side; would you mind opening a ticket with a short description of what version of Core you're on and when this stacktrace arose?
    PS: Turns out the error does not occur when switching back to another feature branch of our own code repository. Hence, the error might be related to a code change on our side. The current assumption on our side is that we might pass an open connection or something else that is not pickable between tasks...
    nicholas

    nicholas

    1 year ago
    @Robin that's definitely possible as well - if you find out more could you update your issue? I'm sure others have run into this as well when trying to pass around connections.
    Robin

    Robin

    1 year ago
    OK, will update on GitHub 🙂
    nicholas

    nicholas

    1 year ago
    Thanks @Robin, much appreciated 😄
    Robin

    Robin

    1 year ago
    It was indeed related to open connection 😉 So always to all prefect users: make sure to close/teardown/dispose all open connections 🙂