goworker
goworker copied to clipboard
worker: Add logic for heatbeat and prune
This logic is ported from the Ruby.
It allows each worker to heartbeat Redis so if everything is killed instead of keeping them on the DB it'll try to prun them after a while (5').
The only logic ont ported from Ruby is the one about checking the PID.
Closes #65