Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix mutation types in delete DAG #28110

Merged
merged 9 commits into from
Jan 30, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions dags/deletes.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,16 +293,18 @@ def count_pending_deletes(client: Client) -> int:
@op
def wait_for_delete_mutations(
cluster: ResourceParam[ClickhouseCluster],
delete_person_events: tuple[PendingPersonEventDeletesTable, Mutation],
delete_person_events: tuple[PendingPersonEventDeletesTable, ShardMutations],
) -> PendingPersonEventDeletesTable:
pending_person_deletions, shard_mutations = delete_person_events

if not shard_mutations:
return pending_person_deletions

[table, mutations] = delete_person_events
cluster.map_all_hosts(mutations.wait).result()
return table
# Wait for all mutations across all shards
for mutation in shard_mutations.values():
cluster.map_all_hosts(mutation.wait).result()
fuziontech marked this conversation as resolved.
Show resolved Hide resolved

return pending_person_deletions


@op
Expand Down