Skip to content

Commit

Permalink
Fix RIO queue test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemare committed Nov 7, 2024
1 parent da86afd commit 3f1161e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-rio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ jobs:
- name: Notify queue down
env:
SLACK_URL: ${{ secrets.SLACK_URL }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == -1 }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == 255 }}
run: |
curl -q -H "Content-Type: application/json" -X POST -d '{"text": "RIO Queue is DOWN"}' $SLACK_URL
exit 1
- name: Notify error
env:
SLACK_URL: ${{ secrets.SLACK_URL }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == -2 }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == 254 }}
run: |
curl -q -H "Content-Type: application/json" -X POST -d '{"text": "Error while checking RIO Queue"}' $SLACK_URL
exit 1
4 changes: 2 additions & 2 deletions src/nl/surf/eduhub_rio_mapper/cli_commands.clj
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
(when-let [ex-data (ex-data ex)]
(when (= :down (:rio-queue-status ex-data))
(println "The RIO Queue is DOWN")
(System/exit -1)))
(System/exit 255)))
(println "An unexpected exception has occurred: " ex)
(System/exit -2))))
(System/exit 254))))

"get"
(let [[client-info rest-args] (parse-client-info-args args clients)]
Expand Down

0 comments on commit 3f1161e

Please sign in to comment.