Skip to content

Commit

Permalink
fix(monitor): add volc and aliyun jobid (InternLM#338)
Browse files Browse the repository at this point in the history
* add volc and aliyun jobid

* rm workspaceid
  • Loading branch information
JiaoPL authored Sep 25, 2023
1 parent 0649655 commit 847cc81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internlm/monitor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ def get_job_id():
job_id = "none"
if os.getenv("SLURM_JOB_ID") is not None:
job_id = os.getenv("SLURM_JOB_ID")
elif os.getenv("K8S_WORKSPACE_ID") is not None:
job_id = os.getenv("K8S_WORKSPACE_ID")
elif os.getenv("KUBERNETES_POD_NAME") is not None:
job_id = os.getenv("KUBERNETES_POD_NAME").split("-")[0]
elif os.getenv("MLP_TASK_INSTANCE_ID") is not None:
job_id = os.getenv("MLP_TASK_ID")

return job_id

Expand Down

0 comments on commit 847cc81

Please sign in to comment.