Open vi opened 8 years ago
Prototype as bash scripts: https://gist.github.com/vi/72a15ad557f1ce80f7ad
@vi I'm developing something similar as job queue for a ci.
Check out dwq (disque work queue): https://github.com/kaspar030/dwq
Currently it expects to execute jobs on a git checkout, but that would be easy to hack out. And it's under heavy development...
Current command line client looks a bit like
whateversql
CLI tool: suitable for management and debugging, but not very suitable to implement Discue-facing services in Bash or in general using command line world.Is there already a client that starts a script for each job and acknowledges it when script exits successfully?
Job data can be fed to stdin, queue name and job id can be command line parameters.
I expect something like this:
disque-spawner
should start specified command for each incoming job. It should periodically doWORKING
if the comand is working,ACKJOB
if command is finished with exit status 0 andNACK
if finished with exit status not 0.If not, where should such be implemented:
disque-cli.c
?