Yes, please consider this a +1 for this functionality being included in the 
UI or CLI.  Saved me today!

Thanks,
Taylor

On Friday, April 22, 2016 at 8:26:35 AM UTC-4, Tatenda Mupaso wrote:
>
> In case anyone out there was wondering, this still works and is still very 
> much helpful. With the current versions of foreman 1.10.3 & katello 2.4.
>
> My daily syncs and content views had come to a standstill due to locked 
> tasks I couldn't cancel.
>
> Thank you!
>
> On Saturday, May 17, 2014 at 2:43:09 PM UTC-4, Jason Montleon wrote:
>>
>> I've gotten back into servers in this state by clearing all the 
>> entries from the foreman_tasks_tasks and foreman_tasks_locks tables in 
>> the database when the server is stopped and then restarting it. 
>>
>> su -s /sbin/bash - postgres 
>> psql 
>> \c foreman; 
>> delete from foreman_tasks_tasks; 
>> delete from foreman_tasks_locks; 
>> \q 
>> exit 
>>
>> You could probably at least be less heavy handed by deleting just the 
>> offending entries. That said I don't know if this is a really bad idea 
>> either way or if there is actually a better way around it. 
>>
>> On Sat, May 17, 2014 at 2:26 PM, Bryan Kearney <[email protected]> 
>> wrote: 
>> > On 05/17/2014 08:45 AM, Tom McKay wrote: 
>> >> 
>> >> 
>> >> In working on testing users and roles, I managed to dynflow block all 
>> the 
>> >> users on my server. The dynflow console, even if I wanted to click 
>> through 
>> >> several hundred locked tasks, does not have a way to unlock these 
>> tasks. 
>> >> 
>> >> 28d3f48f-822b-4cb7-8ff2-33486bc25df2    Actions::Katello::User::Update 
>> >> planned pending 2014-05-17 08:27:32 -0400 
>> >> 
>> >> Clicking through the Show link has a blank page for "Run" so there is 
>> >> nothing to skip or resume. 
>> >> 
>> >> How do I unlock my server? The only hammer command I see is to check 
>> >> progress (perpetually at 0%). 
>> >> 
>> >> Suggestions? 
>> >> 
>> >> 
>> > Do you think this is a DB deadlock? 
>> > 
>> > -- bk 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "foreman-dev" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to [email protected]. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to