[Katello 2.1.2] - How to resume all tasks in the same state at the same time

Does anyone know if it's possible to resume all tasks in the same state at
the same time?
For example, all talks where state = paused and result = pending

I have 1541 tasks "Listen on candlepin events {"locale"=>"en"}" in this
state.

Katello: 2.1.2
Foreman: 1.7.5

Thank you,

Regards,

Fernando