Skip to content

Conversation

@gustavocidornelas
Copy link
Contributor

Summary

  • Adds a wait_for_commit_completion convenience method.
  • Usage should be:
from openlayer import Openlayer
from openlayer.lib.data.commit import wait_for_commit_completion

client = Openlayer()
commit = wait_for_commit_completion(client, "commit_id_here")
  • The convenience function polls the API waiting for the commit status to be either "completed" or "failed". When "completed", returns the retrieved commit object. When "failed", raises an exception.
  • The verbose kwarg (default to True) controls whether the status is print to stdout.

@whoseoyster whoseoyster merged commit 03c1e8d into main Mar 18, 2025
2 checks passed
@whoseoyster whoseoyster deleted the cid/await-commit branch March 18, 2025 20:02
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