Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fit Dashboard worker table to page width #8897

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions distributed/dashboard/components/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4045,7 +4045,7 @@
"spilled_bytes",
}

def __init__(self, scheduler, width=800, **kwargs):
def __init__(self, scheduler, **kwargs):
self.scheduler = scheduler
self.names = [
"name",
Expand Down Expand Up @@ -4138,7 +4138,7 @@
columns=[columns[n] for n in table_names],
reorderable=True,
sortable=True,
width=width,
width_policy="max",
index_position=None,
**_DATATABLE_STYLESHEETS_KWARGS,
)
Expand All @@ -4158,7 +4158,7 @@
columns=[extra_columns[n] for n in extra_names],
reorderable=True,
sortable=True,
width=width,
width_policy="max",
index_position=None,
**_DATATABLE_STYLESHEETS_KWARGS,
)
Expand All @@ -4185,7 +4185,6 @@
x_range=(0, 1),
y_range=(-0.1, 0.1),
height=60,
width=width,
tools="",
min_border_right=0,
**kwargs,
Expand Down Expand Up @@ -4215,7 +4214,6 @@
x_range=(0, 1),
y_range=(-0.1, 0.1),
height=60,
width=width,
tools="",
min_border_right=0,
**kwargs,
Expand Down Expand Up @@ -4626,7 +4624,7 @@

@log_errors
def workers_doc(scheduler, extra, doc):
table = WorkerTable(scheduler)
table = WorkerTable(scheduler, sizing_mode="stretch_width")

Check warning on line 4627 in distributed/dashboard/components/scheduler.py

View check run for this annotation

Codecov / codecov/patch

distributed/dashboard/components/scheduler.py#L4627

Added line #L4627 was not covered by tests
table.update()
add_periodic_callback(doc, table, 500)
doc.title = "Dask: Workers"
Expand Down
Loading