Skip to content

Dashboard not loading with Cythonized Scheduler #4760

@jakirkham

Description

@jakirkham

This appears to have started recently. Possibly related to PR ( #4651 ) ( cc @crusaderky )? In particular loading the dashboard shows a 500 error. Locally the following exception comes up when the Scheduler is Cythonized. The issue does not occur when pure Python is used.

cc @quasiben

What happened:

Screen Shot 2021-04-27 at 5 24 17 PM

distributed.utils - ERROR - object.__new__(distributed.scheduler.MemoryState) is not safe, use distributed.scheduler.MemoryState.__new__()
Traceback (most recent call last):
  File "/Users/jkirkham/Developer/distributed/distributed/utils.py", line 668, in log_errors
    yield
  File "/Users/jkirkham/Developer/distributed/distributed/dashboard/components/scheduler.py", line 296, in update
    meminfo = self.scheduler.memory
  File "distributed/scheduler.py", line 1913, in distributed.scheduler.SchedulerState.memory.__get__
  File "distributed/scheduler.py", line 330, in distributed.scheduler.MemoryState.sum
TypeError: object.__new__(distributed.scheduler.MemoryState) is not safe, use distributed.scheduler.MemoryState.__new__()

What you expected to happen:

Minimal Complete Verifiable Example:

import webbrowser
from dask.distributed import Client

client = Client()

webbrowser.open(client.cluster.dashboard_link)

Anything else we need to know?:

Environment:

  • Dask version: 2021.04.1
  • Python version: 3.8.8
  • Operating System: macOS
  • Install method (conda, pip, source): Conda

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