Skip to content

Commit

Permalink
[Release] health-check workflow: debug export
Browse files Browse the repository at this point in the history
  • Loading branch information
thaovt287 committed Jun 4, 2024
1 parent 9d08f70 commit f981951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
health-check:
if: "startsWith(github.event.head_commit.message, '[Release]')"
runs-on: ubuntu-22.04
name: Health Check
steps:
Expand Down
5 changes: 3 additions & 2 deletions scripts/exports/export-error-rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const checkHealthSubstrateRpc = async (url) => {
const api = await ApiPromise.create({provider})
await api.rpc.chain.getFinalizedHead()
await api.disconnect()
console.log("Done check checkHealthSubstrateRpc", url)

return STATUS.ACTIVE
} catch (err) {
Expand Down Expand Up @@ -118,7 +117,9 @@ const getErrorRpc = async (chainInfo) => {

const errorRpcs = {}
await Bluebird.each(rpcs, async (rpc) => {
if (await _checkHealthRpc(chainType, rpc.url) === STATUS.INACTIVE) {
const status = await _checkHealthRpc(chainType, rpc.url)
console.log("Done check checkHealthSubstrateRpc", rpc.url , status)
if ( status === STATUS.INACTIVE) {
errorRpcs[rpc.name] = rpc.url
}
}, {concurrency: 10})
Expand Down

0 comments on commit f981951

Please sign in to comment.