Skip to content

Conversation

@dragoslav
Copy link
Collaborator

Implemented baker.hasInstance(recipeInstanceId) -> Future[Boolean]

This function returns a Future that resolves to True if an instance with the given recipeInstanceId exists regardless of its state - it can be also already deleted.

Java DSL usage example:

CompletableFuture<Boolean> existsFuture = baker.hasInstance(webShopSessionId);

// Usage in an if-statement
if (baker.hasInstance(webShopSessionId).get()) {
    System.out.println("Instance exists!");
}

@dragoslav dragoslav marked this pull request as ready for review November 6, 2025 10:45
@Tim-Linschoten Tim-Linschoten merged commit c77f14e into master Nov 6, 2025
4 checks passed
@Tim-Linschoten Tim-Linschoten deleted the recipe-instance-exist branch November 6, 2025 16:11
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.

3 participants