Anchorage API reference
    Preparing search index...

    Function resolveScheduleStartOwner

    • Resolve the committed owner of an exact stored schedule target.

      owner() deliberately hides pending reservations, so an uncommitted schedule can never lend authority to a run start. Agent mode is part of the target: a threadless start cannot be replayed against a standing thread, and a threaded wake must match both fixed memory identifiers and their common committed owner.

      Parameters

      Returns Promise<ResolvedScheduleStart<ScheduleSourceWorkflowTarget> | undefined>

    • Resolve the committed owner of an exact stored schedule target.

      owner() deliberately hides pending reservations, so an uncommitted schedule can never lend authority to a run start. Agent mode is part of the target: a threadless start cannot be replayed against a standing thread, and a threaded wake must match both fixed memory identifiers and their common committed owner.

      Parameters

      • schedules: ScheduleSourceStore
      • ownership: ScheduleSourceOwnershipStore
      • scheduleId: string
      • dispatchId: string
      • runId: string
      • expected:
            | { agentId: string; mode: "threadless-start"; type: "agent" }
            | {
                agentId: string;
                mode: "threaded-wake";
                resourceId: string;
                threadId: string;
                type: "agent";
            }
            | {
                agentId: string;
                mode: "threaded-signal";
                resourceId: string;
                threadId: string;
                type: "agent";
            }

      Returns Promise<ResolvedScheduleStart<ScheduleSourceAgentTarget> | undefined>