-
Notifications
You must be signed in to change notification settings - Fork 0
Add Completed Transfer Table #141
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
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
633620a
Add completed transfer table
40c0d6f
Add test for completed transfer
ebf4774
Fix: Address review comments
c43a02c
Add completedTransferCore Pydantic Model
farhadcomp 8d96611
Fix: Address review comments regarding log styles
farhadcomp bf2081f
Minor changes
JBorrow cf129d7
Fix flaky test?
JBorrow 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
47 changes: 47 additions & 0 deletions
47
alembic/versions/84785333a677_add_completed_transfers_table.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,47 @@ | ||
| # Copyright 2017 the HERA Collaboration | ||
| # Licensed under the 2-clause BSD License. | ||
|
|
||
| """Add completed_transfers table | ||
|
|
||
| Revision ID: 84785333a677 | ||
| Revises: 38a604ac628b | ||
| Create Date: 2025-07-25 00:51:04.843683 | ||
|
|
||
| """ | ||
| from alembic import op | ||
| import sqlalchemy as sa | ||
|
|
||
|
|
||
| revision = "84785333a677" | ||
| down_revision = "38a604ac628b" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.create_table( | ||
| "completed_transfers", | ||
| sa.Column("id", sa.Integer(), nullable=False), | ||
| sa.Column("task_id", sa.String(length=256), nullable=False), | ||
| sa.Column("source_endpoint_id", sa.String(length=256), nullable=False), | ||
| sa.Column("destination_endpoint_id", sa.String(length=256), nullable=False), | ||
| sa.Column("start_time", sa.DateTime(), nullable=False), | ||
| sa.Column("end_time", sa.DateTime(), nullable=False), | ||
| sa.Column("duration_seconds", sa.Float(), nullable=False), | ||
| sa.Column("bytes_transferred", sa.BigInteger(), nullable=False), | ||
| sa.Column("effective_bandwidth_bps", sa.Float(), nullable=False), | ||
| sa.ForeignKeyConstraint( | ||
| ["id"], | ||
| ["send_queue.id"], | ||
| ), | ||
| sa.PrimaryKeyConstraint("id"), | ||
| sa.UniqueConstraint("task_id"), | ||
| ) | ||
| # ### end Alembic commands ### | ||
|
|
||
|
|
||
| def downgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.drop_table("completed_transfers") | ||
| # ### end Alembic commands ### |
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
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.
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.