Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
김진영
airflow-test
Commits
ec3dc330
Commit
ec3dc330
authored
May 20, 2022
by
김진영
Browse files
Update batch_test.py
parent
89803127
Changes
1
Hide whitespace changes
Inline
Side-by-side
batch_test.py
View file @
ec3dc330
...
...
@@ -23,7 +23,6 @@ def fail_alert(context):
{"name":"■ Task", "value": "{task}"},
{"name":"■ DAG", "value": "{dag}"},
{"name":"■ Log URL", "value": "{log_url}"},
{"name":"■ Reason", "value":"{reason}"}
]
}
]
...
...
@@ -33,7 +32,6 @@ def fail_alert(context):
task
=
context
.
get
(
'task_instance'
).
task_id
,
dag
=
context
.
get
(
'task_instance'
).
dag_id
,
log_url
=
context
.
get
(
'task_instance'
).
log_url
,
reason
=
context
.
get
(
'exception'
)
)
alert
=
BashOperator
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment