gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit80d8cfd180d8cfd1Tickets conductor: #51 livemre80d8cfd1/tests/subscriptions-retry.hl

796 B

  1. // Test-only accelerated due times; production retry values remain unchanged.
  2. import { completions } from 'hl:fetch'
  3. import { now } from 'hl:time'
  4. import { subscriptionsTable, subscriptionRecords } from '../lib/subscriptions.hl'
  5. import { sweepWakes, wakeCompleted } from '../lib/subscription-wakes.hl'
  6. import { exit } from 'hl:proc'
  7. __native('eventloop.register', completions(), 'finished')
  8. on finished(ev) {
  9. wakeCompleted(ev)
  10. rows = subscriptionRecords()
  11. for (s of rows) {
  12. if (s.wakeStatus == 'failed') {
  13. console.log('FAILED_AFTER ' + s.wakeAttempts)
  14. exit(0)
  15. }
  16. if (s.wakeStatus == 'retry') {
  17. console.log('RETRY ' + s.wakeAttempts + ' DELAY ' + ((s.nextWake - now()) / 60000))
  18. s.nextWake = 0
  19. subscriptionsTable.update(s.id, s)
  20. }
  21. }
  22. sweepWakes(false)
  23. }
  24. sweepWakes(true)

Branches

Latest commits

  • 80d8cfd1Tickets conductor: #51 livemre
  • 61641dd9Complete subscriptions deployment evidencemre
  • c980856cRecord successful subscriptions deployment and live checksmre
  • 4b4710adMerge branch 's51-subscriptions'mre
  • a731ef7eTickets conductor: S51 reviewed, deploy stepmre
  • b487b05aRecord verified direct push protocol handoffmre
  • 74e34cc3Verify encrypted push secrets and direct push retry semanticsmre
  • a1ac5cd0Push subscription notices directly to signed HyperConductor chat endpointsmre
  • d662ad27Remove superseded waker service for direct chat push protocolmre
  • c0ac927aTickets conductor: S51 redo for push protocolmre
  • ff2e8701Finalize subscription build verification and handoff reportmre
  • 07c6daeeTickets conductor: push allowlist URLsmre
  • 8517d14cTickets conductor: Hermes push endpointmre
  • aa4e192cTickets conductor: brief 027 push protocol changemre
  • 54bc5fe1Harden delta relevance, overflow caps and retry verificationmre
  • 8d8e2053Document subscription contract and exercise delta deliverymre
  • fd23726aAdd subscription delta API and signed wake bridgemre
  • c5d28fb5Tickets conductor: S51 startedmre
  • fd6ca1e6Tickets conductor: brief 027 waker design, push-test projectmre
  • e448e656Tickets conductor: STATUS #51mre