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
e492a9a2
Commit
e492a9a2
authored
May 13, 2022
by
김진영
Browse files
Update batch_test.py
parent
81dd05e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
batch_test.py
View file @
e492a9a2
...
@@ -3,35 +3,11 @@ from textwrap import dedent
...
@@ -3,35 +3,11 @@ 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
from
data.gasan_data
import
gasanData
# import cj-gasan data
# set timezone
local_tz
=
pendulum
.
timezone
(
"Asia/Seoul"
)
local_tz
=
pendulum
.
timezone
(
"Asia/Seoul"
)
print
(
gasanData
)
# gasan 데이터 선언
# gasan_data = [
# {
# "ip": "10.231.130.110",
# "serialNum": "7D0B3C9PAGFCF3C",
# "camName": "dt_lab_1"
# },
# {
# "ip": "10.231.130.111",
# "serialNum": "7D0B3C9PAG8D150",
# "camName": "dt_lab_2"
# },
# {
# "ip": "10.231.130.112",
# "serialNum": "7D0B3C9PAGBB838",
# "camName": "dt_lab_3"
# },
# {
# "ip": "10.231.130.113",
# "serialNum": "7D0B3C9PAG17F50",
# "camName": "dt_lab_4"
# },
# ]
with
DAG
(
with
DAG
(
'batch_test'
,
'batch_test'
,
default_args
=
{
default_args
=
{
...
@@ -55,4 +31,5 @@ with DAG(
...
@@ -55,4 +31,5 @@ with DAG(
post_gasan_tasks
.
append
(
post_gasan_task
)
post_gasan_tasks
.
append
(
post_gasan_task
)
# 작업 순서 정의
post_gasan_tasks
post_gasan_tasks
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