Skip to content

Serialization error when trying to use n_workers > 1 in create_nwbs #141

@gshvarts

Description

@gshvarts

I'm getting the following errors when trying to run create_nwbs with n_workers > 1:

Making NWB for animal == 'bobrick' and date == 20231206
Object <function create_nwbs.<locals>.pass_func at 0x7f30e2e9d6c0> cannot be deterministically hashed. This likely indicates that the object cannot be serialized deterministically.
Making NWB for animal == 'bobrick' and date == 20231207
[/home/gl-willow/mambaforge/envs/trodes_to_nwb_3/lib/python3.13/site-packages/distributed/node.py:187](https://file+.vscode-resource.vscode-cdn.net/home/gl-willow/mambaforge/envs/trodes_to_nwb_3/lib/python3.13/site-packages/distributed/node.py:187): UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 46375 instead
  warnings.warn(
Object <function create_nwbs.<locals>.pass_func at 0x7f2ff3e73c40> cannot be deterministically hashed. This likely indicates that the object cannot be serialized deterministically.
Making NWB for animal == 'bobrick' and date == 20231208
[/home/gl-willow/mambaforge/envs/trodes_to_nwb_3/lib/python3.13/site-packages/distributed/node.py:187](https://file+.vscode-resource.vscode-cdn.net/home/gl-willow/mambaforge/envs/trodes_to_nwb_3/lib/python3.13/site-packages/distributed/node.py:187): UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 37473 instead
  warnings.warn(
Object <function create_nwbs.<locals>.pass_func at 0x7f2ff1d27ba0> cannot be deterministically hashed. This likely indicates that the object cannot be serialized deterministically.

I don't remember seeing this before when trying to up the number of workers (previously I think we were running up against memory errors instead but I don't remember exactly). Any idea what's going on here?

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