canonical / canonical/spread

Make timeout warning context configurable?

Open
#242 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
127
Forks
81
PR merge metrics
No merged PRs in 30d

Description

`spread` currently supports setting the `warn-timeout`, which dictates how long before `spread` displays a message saying a task is running late, with a small amount of output from the task.

Adjusting this can give users more information depending on the task, but some applications have quite verbose output, and the number of log lines displayed can be limiting.

We could consider adding a `warn-context` or `warn-lines` that makes the number of lines shown in the late warning adjustable.

Discussed briefly with @niemeyer this morning with neither an affirmative "yes definitely" or "no definitely not"! Could be useful in some cases.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the warn-timeout handling and the code that formats late-task warning output. Determine how the displayed task lines are selected, then make their count configurable and verify that warn-timeout behavior remains unchanged while the configured context limit is respected.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.