Skip to content

Commit 0c3f36d

Browse files
committed
fix: standby_url is optional
1 parent 10f7cce commit 0c3f36d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/apify/_configuration.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from typing_extensions import deprecated
99

1010
from crawlee._utils.models import timedelta_ms
11+
from crawlee._utils.urls import validate_http_url
1112
from crawlee.configuration import Configuration as CrawleeConfiguration
1213

1314

@@ -262,12 +263,13 @@ class Configuration(CrawleeConfiguration):
262263
] = 4321
263264

264265
standby_url: Annotated[
265-
str,
266+
str | None,
267+
BeforeValidator(validate_http_url),
266268
Field(
267269
alias='actor_standby_url',
268270
description='URL for accessing web servers of Actor runs in Standby mode',
269271
),
270-
]
272+
] = None
271273

272274
token: Annotated[
273275
str | None,

0 commit comments

Comments
 (0)