-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #399 from dataforgoodfr/398_improve_db_task_execut…
…ions_traces 398 improve db task executions traces
- Loading branch information
Showing
7 changed files
with
170 additions
and
31 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
backend/alembic/versions/2e4561a69da9_task_execution_add_duration_position.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""task_execution_add_duration_position | ||
Revision ID: 2e4561a69da9 | ||
Revises: 5bfe00a08853 | ||
Create Date: 2024-12-21 22:04:04.659923 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '2e4561a69da9' | ||
down_revision = '5bfe00a08853' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column('tasks_executions',sa.Column("duration", | ||
sa.Interval, | ||
nullable=True)) | ||
op.add_column('tasks_executions',sa.Column("position_count", | ||
sa.Integer, | ||
nullable=True)) | ||
pass | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column('tasks_executions',"position_count") | ||
op.drop_column('tasks_executions',"duration") | ||
pass |
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
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