New Show Hacker News story: Show HN: qme: simple utility for queueing long-running commands
Show HN: qme: simple utility for queueing long-running commands
2 by abdusco | 0 comments on Hacker News.
I keep needing a way to run long-running resource intensive tasks after one another. Normally, I'd write a script which loops over the items, but not knowing what needs to run (I pick files as I go through a folder), I knew it's time I create something to scratch my own itch. So, I've created this utility to queue up commands. It captures command, args, env and working directory and puts it in a queue, and runs it when it's time. At the same time, it spins up an RPC server to receive commands from other instances. If there's no server available, it becomes a server itself and waits for commands or shuts itself down after idling for some time. This is my first (published) Golang project, so guidance & review would be appreciated.
2 by abdusco | 0 comments on Hacker News.
I keep needing a way to run long-running resource intensive tasks after one another. Normally, I'd write a script which loops over the items, but not knowing what needs to run (I pick files as I go through a folder), I knew it's time I create something to scratch my own itch. So, I've created this utility to queue up commands. It captures command, args, env and working directory and puts it in a queue, and runs it when it's time. At the same time, it spins up an RPC server to receive commands from other instances. If there's no server available, it becomes a server itself and waits for commands or shuts itself down after idling for some time. This is my first (published) Golang project, so guidance & review would be appreciated.
Comments
Post a Comment