Skip to content

Instantly share code, notes, and snippets.

@macghriogair
Last active November 6, 2020 15:56
Show Gist options
  • Save macghriogair/bcbe60023aca2b5e8058735bd80df807 to your computer and use it in GitHub Desktop.
Save macghriogair/bcbe60023aca2b5e8058735bd80df807 to your computer and use it in GitHub Desktop.
[Beanstalkd cli interaction] #beanstalkd

Interact with Beantalkd from Linux CLI

Alternative: Beanstalk CLI tool

https://github.com/src-d/beanstool

Install socat

sudo apt-get install socat

Connect via tcp

socat - tcp4-connect:0.0.0.0:11300,crnl
# where :11300 corresponds to the beanstalkd port

Basic commands

full command list: https://github.com/beanstalkd/beanstalk4py/wiki/Beanstalk-Protocol

    # stats
    stats
    
    # watch tube
    watch <tube>
	       
    # watched tubes
    list-tubes-watched
    
    #next jobs ready
    peek-ready
    
    peek <id>
    
    # delete a job
    delete <id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment