Skip to content

0.1.0: expose the Reminder name to typed methods #110

Description

@suraciii

Goal

Let a typed Reminder method read the persisted Reminder name that caused its Call.

Problem

A Grain can set many dynamic Reminder names with one typed method. The stored row keeps each name, but the current TickStatus does not expose it. The method cannot identify which dynamic Reminder ran after a restart.

Scope

  • Add ReminderName to TickStatus.
  • Read the value from the claimed Reminder row.
  • Keep the typed method-handle and normal Call path.
  • Prove dynamic names before and after restart.
  • Update the product and timer contracts.

Acceptance

  • The Reminder method receives the exact persisted name.
  • One method can handle two dynamic Reminder names.
  • The name survives SQLite restart.
  • Background error data and the method receive the same name.
  • Generated files are current.
  • make ci and make external pass.

References

docs/release-0.1.0.md
design/timers.md
design/release-0.1.0.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions