Skip to content

Commit 47089bf

Browse files
Update sync_table_with_pandas reference tasks
1 parent 8f12d94 commit 47089bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

forklift/forklift/pipeline/flows/sync_table_with_pandas.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,11 @@ def extract_df(
134134
post_processing = run_data_flow_script(
135135
post_processing_script_path, upstream_tasks=[drop_final_table]
136136
)
137-
drop_table_if_exists(
137+
final_drop_table = drop_table_if_exists(
138138
database=destination_database,
139139
table=destination_table,
140140
upstream_tasks=[post_processing],
141141
)
142142

143+
flow.set_reference_tasks(loaded_df, final_drop_table)
143144
flow.file_name = Path(__file__).name

0 commit comments

Comments
 (0)