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

refactor(clean_up_old_tasks): remove exists query #8

Merged
merged 3 commits into from
Aug 19, 2024

Conversation

gagantrivedi
Copy link
Member

No description provided.

@gagantrivedi gagantrivedi requested review from a team and khvn26 August 19, 2024 06:07
# delete in batches of settings.TASK_DELETE_BATCH_SIZE
Task.objects.filter(
deleted_tasks = Task.objects.filter(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd prefer the following, but not a blocker for merging

Suggested change
deleted_tasks = Task.objects.filter(
num_tasks_deleted, _ = Task.objects.filter(

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@gagantrivedi gagantrivedi merged commit 1424d95 into main Aug 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants