Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
airflow-dags-hub
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
唐香港
airflow-dags-hub
Commits
3536e6fc
Commit
3536e6fc
authored
Jul 13, 2020
by
吴升宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新视图
parent
df1d2922
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
reflush_per_minute.py
dags/psql/reflush_per_minute.py
+16
-2
No files found.
dags/psql/reflush_per_minute.py
View file @
3536e6fc
...
@@ -27,6 +27,8 @@ dag = DAG(
...
@@ -27,6 +27,8 @@ dag = DAG(
sql1
=
'refresh materialized view concurrently materialized_doctor_view'
sql1
=
'refresh materialized view concurrently materialized_doctor_view'
sql2
=
'refresh materialized view concurrently materialized_hospital_view'
sql2
=
'refresh materialized view concurrently materialized_hospital_view'
sql3
=
'refresh materialized view concurrently materialized_plan_view'
sql3
=
'refresh materialized view concurrently materialized_plan_view'
sql4
=
'refresh materialized view concurrently materialized_tag_view'
sql5
=
'refresh materialized view concurrently materialized_consult_view'
t1
:
PostgresOperator
=
PostgresOperator
(
t1
:
PostgresOperator
=
PostgresOperator
(
task_id
=
'psql_reflush_per_minute_task_001'
,
task_id
=
'psql_reflush_per_minute_task_001'
,
...
@@ -49,5 +51,17 @@ t3 = PostgresOperator(
...
@@ -49,5 +51,17 @@ t3 = PostgresOperator(
dag
=
dag
,
dag
=
dag
,
database
=
'pims'
)
database
=
'pims'
)
t1
>>
t2
t4
=
PostgresOperator
(
t2
>>
t3
task_id
=
'psql_reflush_per_minute_task_04'
,
postgres_conn_id
=
'postgres-test'
,
sql
=
sql4
,
dag
=
dag
,
database
=
'pims'
)
t5
=
PostgresOperator
(
task_id
=
'psql_reflush_per_minute_task_05'
,
postgres_conn_id
=
'postgres-test'
,
sql
=
sql5
,
dag
=
dag
,
database
=
'pims'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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