forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
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 apache#875 from r39132/master
SLA Miss Alert Callbacks : Allow DAGs to specify a callback function for SLA miss handling
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 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
24 changes: 24 additions & 0 deletions
24
airflow/migrations/versions/bbc73705a13e_add_notification_sent_column_to_sla_miss.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,24 @@ | ||
"""Add notification_sent column to sla_miss | ||
Revision ID: bbc73705a13e | ||
Revises: 4446e08588 | ||
Create Date: 2016-01-14 18:05:54.871682 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'bbc73705a13e' | ||
down_revision = '4446e08588' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('sla_miss', sa.Column('notification_sent', sa.Boolean,default=False)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('sla_miss', 'notification_sent') |
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