Skip to content

Commit

Permalink
RDISCROWD-7696: Update task delete non force all delete path (#979)
Browse files Browse the repository at this point in the history
* Update task delete non force all delete path

* rebase to main. update params
  • Loading branch information
dchhabda authored Oct 10, 2024
1 parent 67b6020 commit 23975dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pybossa/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ def delete_bulk_tasks_with_session_repl(project_id, force_reset, task_filter_arg
# delete rows from child talbes first and then from parent
if not force_reset:
"""Delete only tasks that have no results associated."""
params = {}
sql = text('''
BEGIN;
SELECT task_id FROM counter WHERE project_id=:project_id FOR UPDATE;
Expand Down

0 comments on commit 23975dd

Please sign in to comment.