Skip to content

Update publish and invoke to allow for PENDING active state#31

Merged
ajmcquilkin merged 1 commit intomainfrom
ajmcquilkin/allow-pending-running
Feb 10, 2026
Merged

Update publish and invoke to allow for PENDING active state#31
ajmcquilkin merged 1 commit intomainfrom
ajmcquilkin/allow-pending-running

Conversation

@ajmcquilkin
Copy link
Collaborator

@ajmcquilkin ajmcquilkin commented Feb 9, 2026

Adds the PENDING state as an active state in addition to RUNNING. Also cleans up an old TIMEDOUT state and replaces it with the FAILED parent state.

Also updates broken docs links.

Copy link

@jtoar jtoar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good non-blocking comment

Comment on lines +124 to +130
export function isTerminalBuildStatus(status: BuildStatus): boolean {
return status !== "PENDING" && status !== "RUNNING";
}

export function isTerminalInvocationStatus(status: InvocationStatus): boolean {
return status !== "PENDING" && status !== "RUNNING";
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: is it easier/better to define these this way (excluding what's not terminal) than the opposite? Feels like we're less likely to add another terminal status than a non-terminal

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's fair, although I think I'll punt that to if/when we do that refactoring

@ajmcquilkin ajmcquilkin merged commit 52d4501 into main Feb 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants