-
Notifications
You must be signed in to change notification settings - Fork 2
v0.2.126 #130
base: gautham/v0.2.125
Are you sure you want to change the base?
v0.2.126 #130
Changes from all commits
fe59781
d490393
806aac1
ebf6cfa
3f1d024
1b452d0
819361f
e527364
bb619b3
7715d7b
b16254c
e871a3b
adfbdf0
b18ea5f
5433b7b
9442ab8
b8e9118
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -613,7 +613,9 @@ def make( | |
| ) | ||
|
|
||
| instance = SyncEnv(client=self.client, **response.json()) | ||
| instance.instance.load() | ||
| # Resources load lazily on first `db()`/`browser()`/`resources()` access via | ||
| # `_load_resources()`. Skipping the eager preload avoids fail-fast 502s while | ||
| # the container is still warming up. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing
|
||
| return instance | ||
|
|
||
| def make_for_task(self, task: Task) -> SyncEnv: | ||
|
|
@@ -665,7 +667,7 @@ def instance(self, instance_id: Union[str, Dict[str, str]]) -> SyncEnv: | |
| else: | ||
| response = self.client.request("GET", f"/v1/env/instances/{instance_id}") | ||
| instance = SyncEnv(client=self.client, **response.json()) | ||
| instance.instance.load() | ||
| # Resources load lazily on first `db()`/`browser()`/`resources()` access. | ||
| return instance | ||
|
|
||
| def _create_url_instance(self, base_url: str) -> SyncEnv: | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.


Uh oh!
There was an error while loading. Please reload this page.