Skip to content

schedule_turn_timer #14

@elijahwidener

Description

@elijahwidener

Schedules a turn timeout for the current acting player based on game configuration.
Computes a deadline timestamp, increments the game’s timerSeq, and persists a TurnTimer record. A delayed EventBridge schedule is created to invoke the timeout handler at the deadline.

Timers are logically invalidated by design: when a new turn timer is scheduled, the timerSeq is incremented, causing any previously scheduled timeout events with an older sequence to be ignored when fired. This ensures stale timers cannot affect current game state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions