Skip to content

Instantly share code, notes, and snippets.

@beatrizuezu
Forked from guibeira/search-msg-in-sqs.js
Created September 2, 2019 20:55
Show Gist options
  • Save beatrizuezu/06fe37e72a35e1e3f6b7e0aad5164124 to your computer and use it in GitHub Desktop.
Save beatrizuezu/06fe37e72a35e1e3f6b7e0aad5164124 to your computer and use it in GitHub Desktop.
#Para quem tem que deletar muita msg das dead_queue,
#e tem que selecionar uma a uma quais msg deseja excluir.
#Seus problemas acabaram! abra a fila clique em visualizar e buscar e no console cole isso:
function find_and_delete(to_find){
$("div[style='overflow:hidden;white-space:nowrap;']").each(function( index ) {
var text_to_validate = $(this).text()
var n = text_to_validate.search(to_find);
if (n > 0){
var tr = $(this).closest('tr')[0]
$(tr).find('input[type=checkbox]').each(function(){
$(this).click()
})
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment