perf: Skip lifecycle processing work when the queue is empty (#3978)