Skip to content

Commit 5fe3a6d

Browse files
committed
fix cd-langchain
1 parent 5a721cd commit 5fe3a6d

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/cd-langchain.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,20 @@ jobs:
4545
case "$STATUS" in
4646
completed:success)
4747
echo "cd workflow succeeded — polling PyPI until uipath-llm-client==$CORE_VERSION is available..."
48-
for j in $(seq 1 60); do
49-
if uv pip index versions uipath-llm-client 2>/dev/null | grep -q "$CORE_VERSION"; then
48+
for j in $(seq 1 40); do
49+
# Query the simple index directly with Cache-Control: no-cache so Fastly
50+
# revalidates with origin on every request. PyPI purges the per-project
51+
# simple page within seconds of a publish, so uv's local cache (max-age=600)
52+
# would otherwise serve a stale miss for up to 10 minutes.
53+
if curl -sf -H "Cache-Control: no-cache" \
54+
"https://pypi.org/simple/uipath-llm-client/" | grep -q "$CORE_VERSION"; then
5055
echo "uipath-llm-client==$CORE_VERSION is available on PyPI."
5156
exit 0
5257
fi
53-
echo " Not yet available, retrying in 30s ($j/60)..."
54-
sleep 30
58+
echo " Not yet available, retrying in 15s ($j/40)..."
59+
sleep 15
5560
done
56-
echo "::error::uipath-llm-client==$CORE_VERSION never appeared on PyPI (30 min)"
61+
echo "::error::uipath-llm-client==$CORE_VERSION never appeared on PyPI (10 min)"
5762
exit 1
5863
;;
5964
completed:*)

0 commit comments

Comments
 (0)