Skip to content

Commit

Permalink
create unique token and delete ddf after compute call
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Sep 27, 2023
1 parent dde98b3 commit 4f588de
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def __from_edgelist(
}
wait(list(self._plc_graph.values()))
del delayed_tasks_d
del ddf
_client.run(gc.collect)

@property
Expand Down Expand Up @@ -1195,5 +1196,7 @@ def _get_column_from_ls_dfs(lst_df, col_name):
if len_df == 0:
return lst_df[0][col_name]
output_col = cudf.concat([df[col_name] for df in lst_df], ignore_index=True)
# FIXME: For now, don't delete the copied dataframe to avoid crash
for df in lst_df:
df.drop(columns=[col_name], inplace=True)
gc.collect()
return output_col

0 comments on commit 4f588de

Please sign in to comment.