Skip to content

Joblib silently ignores pickle exceptions and does not use cache #896

@p-himik

Description

@p-himik

I'm trying to use memory.cache on a function that returns a bunch of Pandas named tuples made with list(dataframe.itertuples()).
Apparently, such tuples cannot be pickled. I'm fine with that, however I'm not fine with the fact that Joblib doesn't even log the issue. Because of the empty except at https://github.com/joblib/joblib/blob/master/joblib/_store_backends.py#L193 the pickle exception is just ignored, and the hint about race condition doesn't really help to debug the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions