Status Badge is not updated when job fails

The status badge is not updated even when job fails, for example, when one of our workflow failed for master branch, the status is still PASSED:
https://circleci.com/gh/facebook/rocksdb.svg?style=svg
Failed job: https://app.circleci.com/pipelines/github/facebook/rocksdb/3621/workflows/08828cbf-ff9a-4846-a14e-e503b7f24a09

The same problem even we specified the branch:
https://circleci.com/gh/facebook/rocksdb/tree/master.svg?style=svg

Here is our configuration: https://github.com/facebook/rocksdb/blob/master/.circleci/config.yml

Another question, if one job failed but the current job is still running, what would be the status for the badge?