Project

General

Profile

Bug #23814

foreman-rake foreman_tasks:cleanup does not remove tasks from foreman_tasks_locks table

Added by Ivan Necas about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1585890

#foreman-rake foreman_tasks:cleanup does not remove tasks from foreman_tasks_locks table

#su - postgres -c "psql foreman -c 'select * from foreman_tasks_tasks'" |wc -l
19

#su - postgres -c "psql foreman -c 'select * from foreman_tasks_locks'"|wc -l
1125

#foreman-rake foreman_tasks:cleanup TASK_SEARCH="" AFTER=1d

After executing the cleanup script, below is the status of the tasks:

su - postgres -c "psql foreman -c 'select * from foreman_tasks_tasks'" |wc -l
17

su - postgres -c "psql foreman -c 'select * from foreman_tasks_locks'"|wc -l
1125

Expectation to delete old task from foreman_tasks_locks table.

Associated revisions

Revision 38aac7ef (diff)
Added by Ivan Necas about 3 years ago

Fixes #23814 - ensure to clean locks on tasks cleanup (#341)

  • Fixes #23814 - ensure to clean locks on tasks cleanup
  • Refs #23814 - address review comments

History

#1 Updated by The Foreman Bot about 3 years ago

  • Assignee set to Ivan Necas
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/341 added

#2 Updated by Ivan Necas about 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF