File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ def decode_and_deduplicate_image_tags():
74
74
task_id = "trigger_batched_update" ,
75
75
trigger_dag_id = BATCHED_UPDATE_DAG_ID ,
76
76
wait_for_completion = True ,
77
- execution_timeout = timedelta (hours = 5 ),
78
77
retries = 0 ,
79
78
conf = {
80
79
"query_id" : DAG_ID ,
@@ -91,8 +90,7 @@ def decode_and_deduplicate_image_tags():
91
90
).strip (),
92
91
"update_query" : dedent (
93
92
f"""
94
- SET
95
- updated_on = now(),
93
+ SET updated_on = NOW(),
96
94
tags = (
97
95
SELECT jsonb_agg(deduplicated.tag) FROM (
98
96
SELECT DISTINCT ON (all_tags.tag->'name', all_tags.tag->'provider')
@@ -120,6 +118,7 @@ def decode_and_deduplicate_image_tags():
120
118
)
121
119
"""
122
120
).strip (),
121
+ "update_timeout" : int (timedelta (hours = 10 ).total_seconds ()),
123
122
"dry_run" : False ,
124
123
},
125
124
)
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ def trim_and_deduplicate_tags():
32
32
task_id = DAG_ID ,
33
33
trigger_dag_id = BATCHED_UPDATE_DAG_ID ,
34
34
wait_for_completion = True ,
35
- execution_timeout = timedelta (hours = 5 ),
36
35
max_active_tis_per_dag = 2 ,
37
36
map_index_template = """{{ task.conf['table_name'] }}""" ,
38
37
retries = 0 ,
@@ -56,7 +55,7 @@ def trim_and_deduplicate_tags():
56
55
)
57
56
),
58
57
"update_query" : (
59
- "SET updated_on = now (), "
58
+ "SET updated_on = NOW (), "
60
59
+ dedent (
61
60
f"""
62
61
tags = (
@@ -78,6 +77,7 @@ def trim_and_deduplicate_tags():
78
77
"""
79
78
)
80
79
),
80
+ "update_timeout" : int (timedelta (hours = 5 ).total_seconds ()),
81
81
"dry_run" : False ,
82
82
}
83
83
for media_type in MEDIA_TYPES
You can’t perform that action at this time.
0 commit comments