A problem is happening at work with contention for a particular resource (a pre-production demo environment).
The developers have to continually negotiate taking turns to occupy the environment (to get their changes previewed just before they are launched). There's only one of those preview environments because it uses the same db as the main production system.
So I guess I'm playing with the idea of automating that conversation away. Also, the webhooks are neat; lets the person who adds themselves to the queue decide exactly how (slack/pagerduty/etc) they want to be notified.
SEIZE THE CONCH.
Otherwise you're in the queue, waiting... always waiting, until finally the conch falls from your predecessor's grip - and you get notified via email or webhook.
Or as a last resort, by polling:
while [ 1 ]; do
if [ "$(curl -sfL conchable.com/bearer ...)" == "me" ]; then
echo "THE CONCH IS MINE!"
exit 0
fi
sleep 30
done