-
Notifications
You must be signed in to change notification settings - Fork 12
feat: add standby URL, change default standby port #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Cool. What's the relationship between this and |
|
Understood, thanks. Could you mention the different in the field description please? And maybe update https://docs.apify.com/platform/actors/development/programming-interface/environment-variables as well? |
I tried to improve the descriptions here. I'm already preparing a PR for docs, but I want to mention the configs in SDKs, so that's why I'm doing it first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, just one small note
Co-authored-by: František Nesveda <fnesveda@users.noreply.github.com>
] = 4321 | ||
|
||
standby_url: Annotated[ | ||
str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Crawlee, we use a custom URL validator function:
url: Annotated[str, BeforeValidator(validate_http_url), Field(...)]
https://github.com/apify/crawlee-python/blob/v0.3.8/src/crawlee/_request.py#L112
@jirimoravcik Could we use the same approach here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
This PR introduces a new environment variable with standby URL, it also changes the default port for the standby port env var.