Skip to content

Warn on mismatched versions #1678

Description

@mrocklin

Issues can arise when clients and workers don't agree on versions of libraries like cloudpickle . This is a common user issue.

We often recommend calling client.get_versions(check=True) which errs in a very informative way when versions do not match. We have talked about running this automatically on startup but have avoided it so far.

Perhaps we should run this, but just warn instead of err. I propose the following:

  1. Support warning rather than erring in get_versions with get_versions(check='warn'). Valid arguments to this would be 'warn', 'err', 'error', and True the last three of which would all alias to the same behavior.
  2. Call get_versions in client._start
  3. Remove this functionality when automatically starting clients, such as in worker.py::get_client() or Future.__setstate__

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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