Skip to content

Scheduled tasks — Driver ScheduleStoreService (remote registry via driver protocol) #257

Closed

Description

@JAORMX

Summary

Add a ScheduleStoreService in contracts/proto/mecatl/driver/v1/ so the schedule registry can be remote (consistent with the other driver stores: SessionStoreService, EventLogService, etc.).

Part of #189 (scheduled tasks). Split out of #236 (deferred/v2) — the v2 finish PR (#256) landed the core v2 items; this is a mechanical mirror that was deferred to keep #256 reviewable.

Scope

  • A ScheduleStoreService in contracts/proto/mecatl/driver/v1/schedule_store.proto mirroring session_store.proto's shape: Save/Load/Delete/List/Due/Claim/ClaimNow/SetEnabled/RecordFire/LoadFire/ListFires — each a 1:1 wire analogue of the port.ScheduleStore method.
  • The Claim/ClaimNow atomicity must hold over the wire: the driver implements the atomic advance server-side (the harness client can't fence it). This is the same "driver is a trusted trust-tier peer" posture SessionStoreService takes for snapshot opacity.
  • internal/adapter/grpcdriver client + server wrappers (a thin port.ScheduleStore over the wire).
  • Validate via scheduleconformance over the grpcdriver wrapper.
  • Also expose ScheduleOneShotReArmer over the wire (the optional interface from feat: scheduled tasks v2 finish — Create form, NL→cron, sched-- GC, one-shot retry, carried context (#189, #236) #256).

References

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions