Skip to content

Commit

Permalink
Workflow: Add scheduler workflow for stability
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Sep 24, 2024
1 parent 3c02584 commit 9ed36e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scheduled_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 180 # 3hours
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand Down
2 changes: 1 addition & 1 deletion tosfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def __init__(
The maximum number of HTTP connections that can be opened in the
connection pool (default is 1024).
connection_time : int, optional
The time to keep a connection open (default is 10).
The time to keep a connection open in seconds (default is 10).
socket_timeout : int, optional
The socket read and write timeout time for a single request after
a connection is successfully established, in seconds.
Expand Down
3 changes: 3 additions & 0 deletions tosfs/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def tosfs(_tosfs_env_prepare: None) -> TosFileSystem:
endpoint_url=os.environ.get("TOS_ENDPOINT"),
region=os.environ.get("TOS_REGION"),
credentials_provider=EnvCredentialsProvider(),
max_retry_num=1000,
connection_time=30,
socket_timeout=180,
multipart_size=4 << 20,
multipart_threshold=4 << 20,
)
Expand Down

0 comments on commit 9ed36e4

Please sign in to comment.