-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Attempt to fix 400 RequestTimeout when uploading to S3 ⚠️ (#4996)
Co-authored-by: Andrei Neagu <neagu@itis.swiss>
- Loading branch information
Showing
9 changed files
with
204 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/simcore-sdk/src/simcore_sdk/node_ports_common/settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
from typing import Final | ||
|
||
from pydantic import Field, NonNegativeInt, PositiveInt | ||
from settings_library.base import BaseCustomSettings | ||
from settings_library.postgres import PostgresSettings | ||
from settings_library.storage import StorageSettings | ||
|
||
from .constants import MINUTE | ||
|
||
NODE_PORTS_400_REQUEST_TIMEOUT_ATTEMPTS_DEFAULT_VALUE: Final[NonNegativeInt] = 3 | ||
|
||
|
||
class NodePortsSettings(BaseCustomSettings): | ||
NODE_PORTS_STORAGE: StorageSettings = Field(auto_default_from_env=True) | ||
POSTGRES_SETTINGS: PostgresSettings = Field(auto_default_from_env=True) | ||
|
||
NODE_PORTS_MULTIPART_UPLOAD_COMPLETION_TIMEOUT_S: NonNegativeInt = 5 * MINUTE | ||
NODE_PORTS_IO_NUM_RETRY_ATTEMPTS: PositiveInt = 5 | ||
NODE_PORTS_400_REQUEST_TIMEOUT_ATTEMPTS: NonNegativeInt = ( | ||
NODE_PORTS_400_REQUEST_TIMEOUT_ATTEMPTS_DEFAULT_VALUE | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.