Skip to content

improve(docs): blueprint build with context added to examples#751

Merged
james-rl merged 5 commits intomainfrom
james/build-ctxt-ex
Mar 3, 2026
Merged

improve(docs): blueprint build with context added to examples#751
james-rl merged 5 commits intomainfrom
james/build-ctxt-ex

Conversation

@james-rl
Copy link
Copy Markdown
Contributor

@james-rl james-rl commented Mar 3, 2026

Adds an example that shows how to use build context when creating a blueprint.

@james-rl james-rl requested review from dines-rl and sid-rl March 3, 2026 01:43
@james-rl james-rl enabled auto-merge (squash) March 3, 2026 01:43
@james-rl james-rl requested a review from tode-rl March 3, 2026 17:22
# building can take time: make sure to set a long blueprint build timeout
BLUEPRINT_POLL_TIMEOUT_S = 10 * 60
BLUEPRINT_POLL_MAX_ATTEMPTS = 600
ONE_WEEK = timedelta(weeks=1)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is probably excessive, right?

from pathlib import Path
from datetime import timedelta

from runloop_api_client import RunloopSDK
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

forgot to check the other examples, but should we use AsyncRunloopSDK instead?

Copy link
Copy Markdown
Contributor

@sid-rl sid-rl left a comment

Choose a reason for hiding this comment

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

LGTM!

@james-rl james-rl merged commit d2b32e9 into main Mar 3, 2026
7 checks passed
@james-rl james-rl deleted the james/build-ctxt-ex branch March 3, 2026 23:29
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