CI_JOB_STATUS=running in after_script

Summary

When 'CI_JOB_STATUS' is called in after_script, I want it to come out as one of success, failed, or canceled, but when called, it is called running. I'm using GitLab Runner version 15.1.0, so it doesn't seem like a version issue, but I'm curious if there are any other issues.

Steps to reproduce

# .gitlab-ci.yml
after_script:
  - echo CI_JOB_STATUS
  - echo $CI_JOB_STATUS

Actual behavior

[...]
Running after script...
$ echo CI_JOB_STATUS
CI_JOB_STATUS
$ echo $CI_JOB_STATUS
running

Expected behavior

[...]
Running after script...
$ echo CI_JOB_STATUS
CI_JOB_STATUS
$ echo $CI_JOB_STATUS
success(or failed, cancled)

Used GitLab Runner version

v15.1.0 
Edited by yoonj