You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bokeh Task Stream doesn't get cleared after a client.restart() #2253
I see it as starting from a clean slate equivalent to creating a new cluster but with less hassle.
The Client.restart method kills all workers, flushes all scheduler state, and then brings all workers back online, resulting in a clean cluster.
The docs above seem to suggest that old state (tasks) aren't left lying around.
For me, when I do restart I don't want the clutter of what happened previously left lying around so I can focus on what it's doing now. As mentioned, not a big deal. It just seems that other dashboards were cleared but not the tasks one so I wondered if that was an oversight.
On Mon, Sep 17, 2018 at 8:21 AM, Dave Hirschfeld ***@***.***> wrote:
I see it as starting from a clean slate equivalent to creating a new
cluster but with less hassle.
*The Client.restart method kills all workers, flushes all scheduler state,
and then brings all workers back online, resulting in a clean cluster.*
The docs above seem to suggest that old state (tasks) aren't left lying
around.
For me, when I do restart I don't want the clutter of what happened
previously left lying around so I can focus on what it's doing now. As
mentioned, not a big deal. It just seems that other dashboards were cleared
but not the tasks one so I wondered if that was an oversight.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2253 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASszHm8AQV7p2sBBixiEJANrah5H8rDks5ub5PdgaJpZM4WrTrZ>
.
Isn't that what happens by default, if you don't reset your cluster? i.e. If you want the task history, don't reset your cluster; if you want a clean history call reset?
Is there some usecase where you would want to reset the cluster but still keep the task history?
The actual scheduler state is indeed reset, it's just the history that is
kept around. It doesn't affect performance to keep history around.
Perhaps I should ask, why do you want to explicitly clear that history?
Just that it can clutter the task view with history I don't care about - e.g.
I want to see what happened in my most recent run but because the old run is kept around each task in the task stream appears infinitesimally small making it hard to extract any useful information visually.
...just realised I can use the box zoom to get the view I want.
Also, it's a bit strange - sometimes a run will immediately show me a blown up view of just the latest tasks and sometimes it includes the history with all the whitespace. Since I can just zoom it doesn't matter much.
Edit: What threw me off was that zoom wasn't the default, but that's just me not taking a proper look at the tools before opening an issue
Activity
mrocklin commentedon Sep 17, 2018
dhirschfeld commentedon Sep 17, 2018
I see it as starting from a clean slate equivalent to creating a new cluster but with less hassle.
The docs above seem to suggest that old state (tasks) aren't left lying around.
For me, when I do restart I don't want the clutter of what happened previously left lying around so I can focus on what it's doing now. As mentioned, not a big deal. It just seems that other dashboards were cleared but not the tasks one so I wondered if that was an oversight.
mrocklin commentedon Sep 17, 2018
dhirschfeld commentedon Sep 17, 2018
Isn't that what happens by default, if you don't reset your cluster? i.e. If you want the task history, don't reset your cluster; if you want a clean history call reset?
Is there some usecase where you would want to reset the cluster but still keep the task history?
mrocklin commentedon Sep 17, 2018
dhirschfeld commentedon Sep 17, 2018
Just that it can clutter the task view with history I don't care about - e.g.

I want to see what happened in my most recent run but because the old run is kept around each task in the task stream appears infinitesimally small making it hard to extract any useful information visually.
dhirschfeld commentedon Sep 17, 2018
...just realised I can use the box zoom to get the view I want.
Also, it's a bit strange - sometimes a run will immediately show me a blown up view of just the latest tasks and sometimes it includes the history with all the whitespace. Since I can just zoom it doesn't matter much.
Edit: What threw me off was that zoom wasn't the default, but that's just me not taking a proper look at the tools before opening an issue
dhirschfeld commentedon Sep 17, 2018
Since it seem this is intended I'll close this.