gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit506a4efd506a4efdmission 028: #94, identity rulemre506a4efd/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

  • 506a4efdmission 028: #94, identity rulemre
  • 78c7f48eRefine mpackdb holdmre
  • 3d7d89c8Record mpackdb hold until day38mre
  • f1bf7195#51 done; my subscription idmre
  • 9870b945status: #51 proof greenmre
  • e92173c6log: #51 live push proofmre
  • 72d87041log: Hermes push livemre
  • 1d69bf7dTickets conductor: park until Hermes pushmre
  • 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