Skip to content

Commit

Permalink
dev: Add a step to watch claim update in real time
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Jan 16, 2024
1 parent 9cbd2f8 commit 163aac7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,11 @@ eventgrid-register:
--max-delivery-attempts 8 \
--name $(name) \
--source-resource-id $(source)

watch-call:
@echo "👀 Watching status of $(phone_number)..."
while true; do \
clear; \
curl -s "$(endpoint)/call?phone_number=%2B$(phone_number)" | yq --prettyPrint '.[0] | {"phone_number": .phone_number, "claim": .claim, "reminders": .reminders}'; \
sleep 3; \
done

0 comments on commit 163aac7

Please sign in to comment.