Skip to content

Commit

Permalink
fix liveness probe issue, non-detection of stale node
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Feb 16, 2023
1 parent 8eea358 commit 0cdaf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polkadot-sidecar/polkadot_sidecar.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def sync_checker():

PROBLEM_DELAY = 180
if last_block_age > PROBLEM_DELAY:
err = f"last block is more than {PROBLEM_DELAY} seconds old"
err = f"last block is more than {PROBLEM_DELAY} seconds old", 500
print(err)
return err
return "chain is synced"
Expand Down

0 comments on commit 0cdaf1b

Please sign in to comment.