[feedback] Lazily reset product quotas

Once the monotonic clock pauses, we will not have a way to reliably
schedule periodic work. This could result in product quotas getting
reset much later than intended. For example, it's possible for our
product quota reset task to occur after 10 days instead of the intended
1 day if the device is suspended 90% of the time because async work is
scheduled based on the monotonic clock.

This CL changes our product quota reset from occurring proactively on a
periodic schedule to occurring lazily as quotas are queried.

Bug: 360946313
Tested: `fx test //src/developer/forensics`
Tested: `fx shell crasher` with quota temporarily set to 1 and reset
period set to 5 minutes. Observed reports after the first get rejected
both before and after reboots until quota reset occurred.

Change-Id: Ia6bea7ece861d6209dc81ef4f07e1f50f389225f
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1150816
Reviewed-by: Alex Pankhurst <pankhurst@google.com>
Commit-Queue: Thomas Gales <tgales@google.com>
7 files changed
tree: 1f25a392e43fb55bdf64e8b6efcc98dc4367e93d
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. infra/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .editorconfig
  17. .git-blame-ignore-revs
  18. .gitattributes
  19. .gitignore
  20. .gitmodules
  21. .gn
  22. .ignore
  23. analysis_options.yaml
  24. AUTHORS
  25. BUILD.gn
  26. CODE_OF_CONDUCT.md
  27. CONTRIBUTING.md
  28. fuchsia.code-workspace
  29. LICENSE
  30. OWNERS
  31. PATENTS
  32. pyproject.toml
  33. pyrightconfig.json
  34. README.md
  35. rustfmt.toml
  36. shac.star
  37. shac.textproto
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.