Documentation
¶
Overview ¶
cmdstalk is a beanstalkd queue broker. It connects to beanstalkd, watches tubes, reserves jobs, and spawns subcommands to process the work.
cmdstalk monitors the exit status of the worker process, and manages the beanstalkd job accordingly.
If a job TTR is reached, cmdstalk will send SIGTERM then SIGKILL to the worker, and allow the job to time out.
Worker exit(0) tells cmdstalk to delete the job. Worker exit(1) tells cmdstalk to release the job for reprocessing. Worker exit(2) tells cmdstalk to bury the job.
Stderr from the workers is sent to cmdstalk stderr.
Directories
¶
Path | Synopsis |
---|---|
Package broker reserves jobs from beanstalkd, spawns worker processes, and manages the interaction between the two.
|
Package broker reserves jobs from beanstalkd, spawns worker processes, and manages the interaction between the two. |
Package bs provides a richer and/or more domain-specific layer over github.com/kr/beanstalk, including active-record style Job type.
|
Package bs provides a richer and/or more domain-specific layer over github.com/kr/beanstalk, including active-record style Job type. |
Package cli provides command line support for cmdstalk.
|
Package cli provides command line support for cmdstalk. |
Package cmd provides a more domain-specific layer over exec.Cmd.
|
Package cmd provides a more domain-specific layer over exec.Cmd. |
Click to show internal directories.
Click to hide internal directories.