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
5dd2a6da
Commit
5dd2a6da
authored
Jul 14, 2020
by
吴升宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update materialized_tagrel_view
parent
3536e6fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
reflush_per_minute.py
dags/psql/reflush_per_minute.py
+9
-1
No files found.
dags/psql/reflush_per_minute.py
View file @
5dd2a6da
...
@@ -29,6 +29,7 @@ sql2 = 'refresh materialized view concurrently materialized_hospital_view'
...
@@ -29,6 +29,7 @@ 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'
sql4
=
'refresh materialized view concurrently materialized_tag_view'
sql5
=
'refresh materialized view concurrently materialized_consult_view'
sql5
=
'refresh materialized view concurrently materialized_consult_view'
sql6
=
'refresh materialized view concurrently materialized_tagrel_view'
t1
:
PostgresOperator
=
PostgresOperator
(
t1
:
PostgresOperator
=
PostgresOperator
(
task_id
=
'psql_reflush_per_minute_task_001'
,
task_id
=
'psql_reflush_per_minute_task_001'
,
...
@@ -58,10 +59,16 @@ t4 = PostgresOperator(
...
@@ -58,10 +59,16 @@ t4 = PostgresOperator(
dag
=
dag
,
dag
=
dag
,
database
=
'pims'
)
database
=
'pims'
)
t5
=
PostgresOperator
(
t5
=
PostgresOperator
(
task_id
=
'psql_reflush_per_minute_task_05'
,
task_id
=
'psql_reflush_per_minute_task_05'
,
postgres_conn_id
=
'postgres-test'
,
postgres_conn_id
=
'postgres-test'
,
sql
=
sql5
,
sql
=
sql5
,
dag
=
dag
,
dag
=
dag
,
database
=
'pims'
)
database
=
'pims'
)
t6
=
PostgresOperator
(
task_id
=
'psql_reflush_per_minute_task_06'
,
postgres_conn_id
=
'postgres-test'
,
sql
=
sql6
,
dag
=
dag
,
database
=
'pims'
)
\ No newline at end of file
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