-
Notifications
You must be signed in to change notification settings - Fork 32
🎨Storage: HA (🚨🚨🚨 test with multiple replicas) #7375
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
Merged
sanderegg
merged 71 commits into
ITISFoundation:master
from
sanderegg:storage/complete-upload-worker-task
Mar 27, 2025
+1,008
−1,076
Merged
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
f03ada0
added async task for completing upload of file
sanderegg ce26c50
corrected return value
sanderegg c106041
now completion is a worker task
sanderegg 86fddde
removed useless code
sanderegg fe50d9a
new task for copying
sanderegg 3f4385e
added todos to fix
sanderegg 7b1fd2d
call into celery
sanderegg 1531597
added RPC exposed entrypoint for copying folders
sanderegg 58cae29
added exposed RPC entrypoint
sanderegg 8cc2c68
added generator for submit and wait
sanderegg 59e425e
converted to RPC
sanderegg 37fa5be
converted to RPC
sanderegg d9e8ef8
copy with progress bar
sanderegg af6c9da
convert S3 progress to progress bar data
sanderegg 0d7f27a
improve
sanderegg 517f4ef
use task_id for coroutines
sanderegg 796933d
still to be fixed
sanderegg 4c9c6d7
mypy
sanderegg 5e8f40c
removed api entrypoint
sanderegg af3704d
services/storage api version: 0.6.0 → 0.7.0
sanderegg 8523b28
remove moto
sanderegg b0e24c7
back to moto
sanderegg ff1b21c
rename
sanderegg 0b052b3
moved stuff around
sanderegg e7c4324
revert file
sanderegg 9735c64
set an undefined product name
sanderegg 2454b44
type
sanderegg f05cb05
ensure we do not test with 5Gb
sanderegg c187e59
reduce load
sanderegg c83f944
added product_name
sanderegg 0bac485
use fsync=off on postgres while testing
sanderegg 7cda420
moving copy to RPC
sanderegg aec9cbb
moving copy to RPC
sanderegg 9715c17
moving copy to RPC
sanderegg d8e9161
moving copy to RPC
sanderegg 490f7b9
pylint
sanderegg 21136c9
minor
sanderegg 3b02d3c
cleanup
sanderegg 80b0f0d
cleanup
sanderegg d6aa93e
bad merge
sanderegg 1ba4166
added doc
sanderegg 5e12062
cleanup
sanderegg d8d98c5
fixed error handling
sanderegg bf7931f
cleanup
sanderegg a76274c
@GitHK review: add exceptions
sanderegg 52d9a13
fix mock
sanderegg 92003a3
fix test mocks
sanderegg d6739e1
@pcrespov review: use ProductName
sanderegg f0c615b
use dataclass
sanderegg c970452
fixed tests?
sanderegg ec038e4
fix the test
sanderegg 77dc4d4
fixed size
sanderegg d2f85a3
maybe fixes it
sanderegg 21d7e5b
Revert "temporary remove this test"
sanderegg ed7f753
bad test
sanderegg bcc3829
fix the test
sanderegg 19006db
revert
sanderegg b882693
fixed
sanderegg feb72ea
cleanup
sanderegg b893180
rename
sanderegg f36680b
typo
sanderegg d212b4a
bad merge
sanderegg de9c703
bad merge
sanderegg 4e1502f
fixed tests
sanderegg dd67a48
missing dependency
sanderegg 4248b0c
should not be necessary anymore
sanderegg eb3c42e
ensure sto-worker is there too
sanderegg 30478c8
seems to work better
sanderegg 3907cf9
cannot stop
sanderegg de6ff9b
add logging of 500
sanderegg e39a883
being broken because of progress
sanderegg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
29 changes: 29 additions & 0 deletions
29
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/storage/simcore_s3.py
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| from models_library.api_schemas_rpc_async_jobs.async_jobs import ( | ||
| AsyncJobGet, | ||
| AsyncJobNameData, | ||
| ) | ||
| from models_library.api_schemas_storage import STORAGE_RPC_NAMESPACE | ||
| from models_library.api_schemas_storage.storage_schemas import FoldersBody | ||
| from models_library.rabbitmq_basic_types import RPCMethodName | ||
| from models_library.users import UserID | ||
|
|
||
| from ..._client_rpc import RabbitMQRPCClient | ||
| from ..async_jobs.async_jobs import submit | ||
|
|
||
|
|
||
| async def copy_folders_from_project( | ||
| client: RabbitMQRPCClient, | ||
| *, | ||
| user_id: UserID, | ||
| product_name: str, | ||
| body: FoldersBody, | ||
| ) -> tuple[AsyncJobGet, AsyncJobNameData]: | ||
| job_id_data = AsyncJobNameData(user_id=user_id, product_name=product_name) | ||
| async_job_rpc_get = await submit( | ||
| rabbitmq_rpc_client=client, | ||
| rpc_namespace=STORAGE_RPC_NAMESPACE, | ||
| method_name=RPCMethodName("copy_folders_from_project"), | ||
| job_id_data=job_id_data, | ||
| body=body, | ||
| ) | ||
| return async_job_rpc_get, job_id_data | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -32,6 +32,7 @@ | |
| "rabbit", | ||
| "redis", | ||
| "storage", | ||
| "sto-worker", | ||
| ] | ||
|
|
||
| pytest_simcore_ops_services_selection = [ | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ | |
| "rabbit", | ||
| "redis", | ||
| "storage", | ||
| "sto-worker", | ||
| ] | ||
|
|
||
| pytest_simcore_ops_services_selection = [ | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 +1 @@ | ||
| 0.6.0 | ||
| 0.7.0 |
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.