Skip to content

Conversation

@armenzg
Copy link
Member

@armenzg armenzg commented Oct 7, 2025

This helps with the readability of the code.

This helps with the readability of the code.
@armenzg armenzg self-assigned this Oct 7, 2025
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 7, 2025
@codecov

This comment was marked as outdated.

return False
return model.__name__.lower() not in model_list

bulk_query_deletes = generate_bulk_query_deletes()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call is only needed within run_bulk_query_deletes.

Image

models_attempted,
)

debug_output("Running bulk deletes in DELETES")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

models_attempted,
)

if project_deletion_query is not None and len(to_delete_by_project):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

task_queue, project, project_id, is_filtered, days, models_attempted
)

if organization_deletion_query is not None and len(to_delete_by_organization):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@armenzg
Copy link
Member Author

armenzg commented Oct 7, 2025

bugbot run

cursor[bot]

This comment was marked as outdated.

@armenzg armenzg marked this pull request as ready for review October 7, 2025 13:41
@armenzg armenzg requested review from a team and markstory October 7, 2025 13:41
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.


def _stop_pool(pool: Sequence[Process], task_queue: _WorkQueue) -> None:
# First, ensure all queued tasks are completed
task_queue.join()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whenever an exception is raised inside of the try/block, it may leave us without calling task_queue.join() in one of the steps, thus, it may make sense to completing the tasks before shutting down the pool.

@armenzg armenzg merged commit bd7726d into master Oct 8, 2025
65 checks passed
@armenzg armenzg deleted the 3/ref/cleanup/armenzg branch October 8, 2025 11:26
@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants