@cfxlabsinc/b2b-services
    Preparing search index...

    Ends one dashboard's sessions nobody reads again, for the hourly sweep. It needs no cookie passwords, so the Temporal worker builds it on its own.

    Index
    instance: (
        ...args: [{ dashboard: "admin" | "bank" | "customer" }],
    ) => DashboardSessionExpiryService = ...

    One dashboard's sweep, on the writer: the sweep updates rows.

    • Ends up to batchSize live sessions past their expiry or idle, as EXPIRED. Rows a concurrent end or refresh holds are skipped, so callers repeat until fewer than batchSize come back.

      Parameters

      • __namedParameters: { batchSize: number; now: Date }

      Returns Promise<{ expired: number }>