Several servers compute the coffee shop's nightly report, and only one of them should start it. Before it starts, a server takes a lock with the command SET lock:report <token> NX PX 30000: the key is created only if it does not exist yet, and it lives for 30 seconds. Every run has its own token, for example job-7.