New issue
Advanced search Search tips

Issue 747495 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 839099
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 839099



Sign in to add a comment

Support dynamic priorities on TaskScheduler provided TaskRunners.

Project Member Reported by gab@chromium.org, Jul 21 2017

Issue description

We need an API to let owners of a TaskScheduler provided TaskRunner toggle priority of tasks posted to it (current and future).

This will be particularly useful for sequences that have the following pattern:
 - Important read on startup
 - Background writes for Chrome's lifetime
 - Important writes on shutdown

Re. shutdown: while TaskScheduler automatically bumps the priority of BACKGROUND+BLOCK_SHUTDOWN tasks on TaskScheduler::Shutdown(), it's not always possible to trigger TaskScheduler::Shutdown() in code blocking on a final flush to disk -- e.g. ChromeRestartRequest::Start() or BrowserProcessImpl::EndSession().

Until we have that, we will unfortunately have to run those TaskRunners at USER_VISIBLE priority for the lifetime of the browser. Such use cases will be tagged with this issue# to be updated once this API is ready.
 

Comment 1 by gab@chromium.org, Jul 21 2017

Labels: -Pri-3 M-62 Pri-2

Comment 2 by gab@chromium.org, May 3 2018

Blockedon: 839099
Labels: -Pri-2 -M-62 Pri-3
Status: Available (was: Untriaged)

Comment 3 by gab@chromium.org, May 3 2018

Mergedinto: 839099
Status: Duplicate (was: Available)

Sign in to add a comment