Skip to content

Commit 7a13daf

Browse files
authored
Merge pull request #5850 from Textualize/big-worker
Big worker
2 parents 11266cb + b4b912d commit 7a13daf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111

1212
- Fixed issues with initial flicker in `TextArea` rendering https://github.com/Textualize/textual/issues/5841
13-
14-
## Unreleased
13+
- Fixed issue with workers that have large parameter lists breaking dev tools
1514

1615
### Added
1716

src/textual/worker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ def __init__(
164164
self._work = work
165165
self.name = name
166166
self.group = group
167-
self.description = description
167+
self.description = (
168+
description if len(description) <= 1000 else description[:1000] + "..."
169+
)
168170
self.exit_on_error = exit_on_error
169171
self.cancelled_event: Event = Event()
170172
"""A threading event set when the worker is cancelled."""

0 commit comments

Comments
 (0)