Deleting repository fails with lock error

Problem:

Trying to delete a repository fails with Required lock is already taken by other running tasks. In tasks there is no running task.

Is there any option to resolve this issue, do not want to mess with the DB.

Expected outcome:

The repository should be deleted without any error

Foreman and Proxy versions:
Foreman katello 3.7

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:
Required lock is already taken by other running tasks.
Please inspect their state, fix their errors and resume them.

Hi @dkm6

Is this Katello 3.7 or Katello 3.17?

If you goto tasks and find the paused tasks, goto dynflow, the step that is red. What does that show if you expand it?

It is ver 4, in Dynaflow for that step, the following error was there

Error:

ArgumentError

bad argument (expected URI object or URI string)

Just tried skip on that step , looks like it released the lock,

Thanks