-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow task runs without a flow run (#10816)
Co-authored-by: Alexander Streed <[email protected]>
- Loading branch information
1 parent
6fe0e35
commit 6b6482b
Showing
11 changed files
with
221 additions
and
67 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
30 changes: 30 additions & 0 deletions
30
...postgresql/2023_09_25_121806_8167af8df781_remove_flow_run_id_requirement_from_task_run.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,30 @@ | ||
"""Make flow_run_id nullable on task_run and log tables | ||
Revision ID: 05ea6f882b1d | ||
Revises: 4e9a6f93eb6c | ||
Create Date: 2023-09-25 12:18:06.722322 | ||
""" | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "05ea6f882b1d" | ||
down_revision = "4e9a6f93eb6c" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table("task_run") as batch_op: | ||
batch_op.alter_column("flow_run_id", nullable=True) | ||
|
||
with op.batch_alter_table("log") as batch_op: | ||
batch_op.alter_column("flow_run_id", nullable=True) | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table("task_run") as batch_op: | ||
batch_op.alter_column("flow_run_id", nullable=False) | ||
|
||
with op.batch_alter_table("log") as batch_op: | ||
batch_op.alter_column("flow_run_id", nullable=False) |
30 changes: 30 additions & 0 deletions
30
...ons/sqlite/2023_09_25_121806_8167af8df781_remove_flow_run_id_requirement_from_task_run.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,30 @@ | ||
"""Make flow_run_id nullable on task_run and log tables | ||
Revision ID: 05ea6f882b1d | ||
Revises: 8167af8df781 | ||
Create Date: 2023-09-25 12:18:06.722322 | ||
""" | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "05ea6f882b1d" | ||
down_revision = "8167af8df781" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table("task_run") as batch_op: | ||
batch_op.alter_column("flow_run_id", nullable=True) | ||
|
||
with op.batch_alter_table("log") as batch_op: | ||
batch_op.alter_column("flow_run_id", nullable=True) | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table("task_run") as batch_op: | ||
batch_op.alter_column("flow_run_id", nullable=False) | ||
|
||
with op.batch_alter_table("log") as batch_op: | ||
batch_op.alter_column("flow_run_id", nullable=False) |
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
Oops, something went wrong.