macOS OS-level task scheduler component
Categories
(Toolkit :: Application Update, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: nalexander, Assigned: nalexander)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
Bug 1676296 introduced a TaskScheduler.jsm
abstraction around scheduling OS-level tasks, and an implementation for Windows based on Task Scheduler. This ticket tracks adding an implementation for macOS based on launchd.
One thing worth noting here. At this time, there's no macOS installer and/or uninstaller. That means we have no clear point to run code to clean up old scheduled tasks. However, the clever folks at Steam use the WatchPaths launchd.plist key
to do some additional clean up when their App is deleted, and we can do similar.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
At the same time, remove the global define, which isn't necessary and
triggers some rebuilds. Nothing is using MOZ_UPDATE_AGENT right now
so it's safe to enable more broadly, and it will be used to gate new
background update work.
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
The bundle ID will be used to namespace OS-level tasks registered with
launchd on macOS.
Depends on D102786
Assignee | ||
Comment 3•5 years ago
|
||
As written, this will work with the synchronous Windows implementation
and the forthcoming asynchronous macOS implementation. But that's a
recipe for confusion, so let's be explicit and make this API async.
Depends on D102787
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D102788
Assignee | ||
Comment 5•5 years ago
|
||
Try build is percolating at https://treeherder.mozilla.org/jobs?repo=try&revision=651de1913989edaebcc9732a5c79d42875c93fdd.
Comment 7•5 years ago
|
||
Failure log: https://treeherder.mozilla.org/logviewer?job_id=332643702&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/6b980a8dce8298b9136e982e76a59f631b44b722
![]() |
||
Comment 9•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/17e263e7f465
https://hg.mozilla.org/mozilla-central/rev/f4483f7da5bb
https://hg.mozilla.org/mozilla-central/rev/a391f4f760fb
https://hg.mozilla.org/mozilla-central/rev/4c60dddf4f8c
Assignee | ||
Comment 10•5 years ago
|
||
Clearing NI since I have relanded this.
Description
•