Skip to content

Instantly share code, notes, and snippets.

@mfurquimdev
Created June 29, 2021 19:13
Show Gist options
  • Select an option

  • Save mfurquimdev/b21fe8382fa080cbd850c5eed19a1967 to your computer and use it in GitHub Desktop.

Select an option

Save mfurquimdev/b21fe8382fa080cbd850c5eed19a1967 to your computer and use it in GitHub Desktop.
Get all Celery tasks on redis
#!/bin/bash
for task in $(printf "select 7\r\nkeys *\r\nquit\r\n" | nc localhost 6379 | grep celery); do printf "select 7\r\nget $task\r\nquit\r\n" | nc localhost 6379; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment