Closed Bug 1568287 Opened 5 years ago Closed 3 years ago

Decide on update agent task schedule (trigger)

Categories

(Toolkit :: Application Update, task, P3)

Desktop
Windows
task

Tracking

()

RESOLVED FIXED

People

(Reporter: agashlin, Unassigned)

References

(Blocks 1 open bug)

Details

We likely want a daily schedule for the update agent to check for updates, but we may want this to vary based on channel. I'd like to get some input on this from the releng perspective.

Daily

Windows Task Scheduler will run the task at a given time during the day, though it can be set to run the task later if it was missed. We need to pick a time of day, or decide how we will schedule the check based on the install time (12 hours later to likely end up in unused time?)

We can have a random delay to avoid everyone in a timezone hitting the update check at once).

Some points of reference from my machine:

Logon / Boot

Do we want to run the task shortly after logon (for per-user accounts), or boot (for local service)? This would increase the likelihood of updating before Firefox runs, but:

  1. Running stuff at startup is going to hit when disk load is worst, and running an update then could make things yet worse.
  2. With Firefox now starting automatically on Windows 10 in many cases, the update agent likely won't even get a chance to run anyway.

Google Update and Nvidia have an "at log on of any user" trigger.

Idle, batteries, network

There is a mechanism to only run the task if the system is idle, but I don't know much about how this works. Details here. Omaha doesn't bother with it; OneDrive uses the related setting to "Stop if the computer ceases to be idle". Generally I'm not big on the idea of stopping the task from Task Scheduler.

We can decide not to start the task if the machine is on batteries, and to stop if it goes on batteries.

We could also not start unless a network is available, which may be desired.

Priority: -- → P3

In the bug 1515451 patch currently up for review, the schedule is set to once per 24 hours (starting 24 hours from the first registration of the task), and if that is missed (due to e.g. the computer being shut down), the task will run whenever it is next possible to do so.

The background update task runs, by default, every 7 hours.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.