Skip to content

Commit fd3b066

Browse files
authored
Retry internal server errors from the MutexBot API (#6)
1 parent ee07cf2 commit fd3b066

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mutexbot/release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
}
3030
3131
ACTION=$([ "${FORCE_RELEASE}" == "true" ] && echo "force-release" || echo "release")
32-
RESPONSE=$(curl -s --retry 5 -o response.json -w "%{http_code}" -X POST "https://mutexbot.com/api/resources/global/${RESOURCE_NAME}/${ACTION}" \
32+
RESPONSE=$(curl -s --retry 15 --retry-delay 2 -o response.json -w "%{http_code}" -X POST "https://mutexbot.com/api/resources/global/${RESOURCE_NAME}/${ACTION}" \
3333
-H "X-API-KEY: ${API_KEY}" \
3434
-H "Content-Type: application/json" \
3535
-d "{}")

mutexbot/reserve/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ runs:
3737
}
3838
3939
while true; do
40-
RESPONSE=$(curl -s --retry 5 -o response.json -w "%{http_code}" -X POST "https://mutexbot.com/api/resources/global/${RESOURCE_NAME}/reserve" \
40+
RESPONSE=$(curl -s --retry 15 --retry-delay 2 -o response.json -w "%{http_code}" -X POST "https://mutexbot.com/api/resources/global/${RESOURCE_NAME}/reserve" \
4141
-H "X-API-KEY: ${API_KEY}" \
4242
-H "Content-Type: application/json" \
4343
-d "${PAYLOAD}")

0 commit comments

Comments
 (0)