mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
improve webhook curl
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"completed":true,"result":{"error":{"name":"Exception","stack":" File \"/tmp/u/ruben/gentle_script.py\", line 35, in main\n print(wmill.get_variable(\"u/admin/adorable_postgresql\"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n File \"/tmp/windmill/cache/pip/wmill==1.166.0/wmill/client.py\", line 336, in get_variable\n raise Exception(\n","message":"Variable at path u/admin/adorable_postgresql does not exist or you do not have read permissions on it"}}}
|
||||
@@ -174,10 +174,10 @@ ${
|
||||
: `
|
||||
URL="${$page.url.origin}/api/w/${$workspaceStore}/jobs_u/completed/get_result_maybe/$UUID"
|
||||
while true; do
|
||||
RESPONSE=$(curl -s -H "Authorization: Bearer $TOKEN" $URL)
|
||||
COMPLETED=$(echo $RESPONSE | jq .completed)
|
||||
curl -s -H "Authorization: Bearer $TOKEN" $URL -o res.json
|
||||
COMPLETED=$(cat res.json | jq .completed)
|
||||
if [ "$COMPLETED" = "true" ]; then
|
||||
echo $RESPONSE | jq .result
|
||||
cat res.json | jq .result
|
||||
break
|
||||
else
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user