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
060137c7
Commit
060137c7
authored
May 23, 2022
by
김진영
Browse files
Update batch_test.py
parent
f5827ad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
b
atch_test
.py
→
b
c-gasan
.py
View file @
060137c7
...
@@ -3,8 +3,8 @@ from textwrap import dedent
...
@@ -3,8 +3,8 @@ from textwrap import dedent
import
pendulum
import
pendulum
from
airflow.operators.bash
import
BashOperator
from
airflow.operators.bash
import
BashOperator
from
airflow
import
DAG
from
airflow
import
DAG
from
data.gasan_data
import
gasanData
# import cj-gasan data
from
airflow.models
import
Variable
from
airflow.models
import
Variable
from
data.gasan_data
import
gasanData
# import gasan data
from
fail_alert
import
fail_alert
# 실패 시 Teams 알림 발송
from
fail_alert
import
fail_alert
# 실패 시 Teams 알림 발송
# set timezone
# set timezone
...
@@ -12,14 +12,14 @@ local_tz = pendulum.timezone("Asia/Seoul")
...
@@ -12,14 +12,14 @@ local_tz = pendulum.timezone("Asia/Seoul")
# set dag
# set dag
with
DAG
(
with
DAG
(
'b
atch_test
'
,
'b
c-gasan
'
,
default_args
=
{
default_args
=
{
'depends_on_past'
:
False
,
'depends_on_past'
:
False
,
'email'
:
'kim-jy@lotte.net'
,
'email'
:
'kim-jy@lotte.net'
,
#'on_failure_callback': fail_alert
#'on_failure_callback': fail_alert
'on_success_callback'
:
fail_alert
'on_success_callback'
:
fail_alert
},
},
description
=
'
Test B
atch
J
ob'
,
description
=
'
dag for gasan b
atch
j
ob
s
'
,
schedule_interval
=
'*/1 * * * *'
,
schedule_interval
=
'*/1 * * * *'
,
start_date
=
datetime
(
2022
,
5
,
13
,
tzinfo
=
local_tz
),
start_date
=
datetime
(
2022
,
5
,
13
,
tzinfo
=
local_tz
),
tags
=
[
'test'
],
tags
=
[
'test'
],
...
...
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