Skip to content

GitHubIssueStorage

Defined in: storage/github-issue.ts:68

GitHub Issue storage implementation

T extends QueueItem = QueueItem

new GitHubIssueStorage<T>(options): GitHubIssueStorage<T>

Defined in: storage/github-issue.ts:78

GitHubIssueStorageOptions

GitHubIssueStorage<T>

acquireLock(holder, ttlMs): Promise<boolean>

Defined in: storage/github-issue.ts:124

Acquire a distributed lock

string

Identifier for the lock holder

number

Time-to-live in milliseconds

Promise<boolean>

true if lock acquired, false if already locked

QueueStorage.acquireLock


getLock(): Promise<QueueLock | null>

Defined in: storage/github-issue.ts:200

Get the current lock info

Promise<QueueLock | null>

QueueStorage.getLock


isLocked(): Promise<boolean>

Defined in: storage/github-issue.ts:195

Check if a lock is currently held

Promise<boolean>

QueueStorage.isLocked


read(): Promise<QueueState<T>>

Defined in: storage/github-issue.ts:92

Read the current queue state

Promise<QueueState<T>>

QueueStorage.read


releaseLock(holder): Promise<void>

Defined in: storage/github-issue.ts:170

Release a distributed lock

string

Must match the holder that acquired the lock

Promise<void>

QueueStorage.releaseLock


write(state): Promise<void>

Defined in: storage/github-issue.ts:105

Write the queue state

QueueState<T>

Promise<void>

QueueStorage.write