Pull in refactoring.
Wrap frequent jobs in flock so that they can't overrun themselves and e.g. send duplicate messages.